diff options
author | Jakob Bornecrantz <[email protected]> | 2009-10-08 14:40:19 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-10-08 14:50:40 +0200 |
commit | 6d629d4aa211d098fe9541d0b644cf67ee1d7019 (patch) | |
tree | 3179f7b4f7d357468ade0a58381754afcd5ef3c9 /src/gallium/state_trackers/xorg/xorg_composite.c | |
parent | 992b143b2551b0fe1871bc90aed984f63d04d7b5 (diff) |
st/xorg: More fallback debugging
Change the fallback debugging around a bit and do the old commit correctly
Diffstat (limited to 'src/gallium/state_trackers/xorg/xorg_composite.c')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_composite.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_composite.c b/src/gallium/state_trackers/xorg/xorg_composite.c index 7037d17e43f..98e9933f72d 100644 --- a/src/gallium/state_trackers/xorg/xorg_composite.c +++ b/src/gallium/state_trackers/xorg/xorg_composite.c @@ -283,6 +283,9 @@ boolean xorg_composite_accelerated(int op, PicturePtr pMaskPicture, PicturePtr pDstPicture) { + ScreenPtr pScreen = pDstPicture->pDrawable->pScreen; + ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + modesettingPtr ms = modesettingPTR(pScrn); unsigned i; unsigned accel_ops_count = sizeof(accelerated_ops)/sizeof(struct acceleration_info); @@ -290,11 +293,11 @@ boolean xorg_composite_accelerated(int op, if (pSrcPicture->pSourcePict) { /* Gradients not yet supported */ if (pSrcPicture->pSourcePict->type != SourcePictTypeSolidFill) - return FALSE; + XORG_FALLBACK("gradients not yet supported"); /* Solid source with mask not yet handled properly */ if (pMaskPicture) - return FALSE; + XORG_FALLBACK("solid source with mask not yet handled properly"); } for (i = 0; i < accel_ops_count; ++i) { @@ -306,11 +309,11 @@ boolean xorg_composite_accelerated(int op, (!accelerated_ops[i].with_mask || (pMaskPicture->componentAlpha && !accelerated_ops[i].component_alpha)))) - return FALSE; + XORG_FALLBACK("component alpha unsupported"); return TRUE; } } - return FALSE; + XORG_FALLBACK("unsupported operation"); } static void |