diff options
-rw-r--r-- | src/i830_exa.c | 2 | ||||
-rw-r--r-- | uxa/uxa-render.c | 10 | ||||
-rw-r--r-- | uxa/uxa-unaccel.c | 2 |
3 files changed, 4 insertions, 10 deletions
diff --git a/src/i830_exa.c b/src/i830_exa.c index d18bcd2d..ebc6624c 100644 --- a/src/i830_exa.c +++ b/src/i830_exa.c @@ -1007,7 +1007,7 @@ i830_uxa_init (ScreenPtr pScreen) I830SelectBuffer(scrn, I830_SELECT_FRONT); - uxa_set_fallback_debug(pI830->fallback_debug); + uxa_set_fallback_debug(pScreen, i830->fallback_debug); return TRUE; } diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index 13635f83..60022cc4 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -33,13 +33,11 @@ #ifdef RENDER #include "mipict.h" -#if DEBUG_TRACE_FALL static void uxa_composite_fallback_pict_desc(PicturePtr pict, char *string, int n) { char format[20]; char size[20]; char loc; - int temp; if (!pict) { snprintf(string, n, "None"); @@ -71,7 +69,7 @@ static void uxa_composite_fallback_pict_desc(PicturePtr pict, char *string, int break; } - loc = uxa_get_drawable_pixmap(pict->pDrawable, &temp, &temp) ? 's' : 'm'; + loc = uxa_get_drawable_pixmap(pict->pDrawable) ? 's' : 'm'; snprintf(size, 20, "%dx%d%s", pict->pDrawable->width, pict->pDrawable->height, pict->repeat ? @@ -112,7 +110,6 @@ uxa_print_composite_fallback(CARD8 op, " dst %s, \n", sop, srcdesc, maskdesc, dstdesc); } -#endif /* DEBUG_TRACE_FALL */ Bool uxa_op_reads_destination (CARD8 op) @@ -775,9 +772,8 @@ uxa_composite(CARD8 op, } fallback: -#if DEBUG_TRACE_FALL - uxa_print_composite_fallback (op, pSrc, pMask, pDst); -#endif + if (uxa_screen->fallback_debug) + uxa_print_composite_fallback (op, pSrc, pMask, pDst); uxa_check_composite (op, pSrc, pMask, pDst, xSrc, ySrc, xMask, yMask, xDst, yDst, width, height); diff --git a/uxa/uxa-unaccel.c b/uxa/uxa-unaccel.c index d2c5de03..8f864688 100644 --- a/uxa/uxa-unaccel.c +++ b/uxa/uxa-unaccel.c @@ -68,13 +68,11 @@ uxa_finish_access_gc(GCPtr pGC) uxa_finish_access(&pGC->stipple->drawable); } -#if DEBUG_TRACE_FALL char uxa_drawable_location(DrawablePtr pDrawable) { return uxa_drawable_is_offscreen(pDrawable) ? 's' : 'm'; } -#endif /* DEBUG_TRACE_FALL */ void uxa_check_fill_spans (DrawablePtr pDrawable, GCPtr pGC, int nspans, |