st/xorg: fix compilation of xorg_exa.c with DEBUG_PRINT set to 1

This commit is contained in:
Marcin Slusarz
2011-05-09 00:36:02 +02:00
committed by Michel Dänzer
parent 7074801ed7
commit 7c5eaf5a2d
+5 -7
View File
@@ -584,19 +584,17 @@ ExaCheckComposite(int op,
ScrnInfoPtr pScrn = xf86Screens[pDstPicture->pDrawable->pScreen->myNum];
modesettingPtr ms = modesettingPTR(pScrn);
struct exa_context *exa = ms->exa;
Bool accelerated = exa->accel && xorg_composite_accelerated(op,
pSrcPicture,
pMaskPicture,
pDstPicture);
#if DEBUG_PRINT
debug_printf("ExaCheckComposite(%d, %p, %p, %p) = %d\n",
op, pSrcPicture, pMaskPicture, pDstPicture, accelerated);
#endif
if (!exa->accel)
return FALSE;
return xorg_composite_accelerated(op,
pSrcPicture,
pMaskPicture,
pDstPicture);
return accelerated;
}