summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/xorg/xorg_composite.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-10-08 14:40:19 +0200
committerJakob Bornecrantz <jakob@vmware.com>2009-10-08 14:50:40 +0200
commit6d629d4aa211d098fe9541d0b644cf67ee1d7019 (patch)
tree3179f7b4f7d357468ade0a58381754afcd5ef3c9 /src/gallium/state_trackers/xorg/xorg_composite.c
parent992b143b2551b0fe1871bc90aed984f63d04d7b5 (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.c11
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 7037d17e43..98e9933f72 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