From: Michel Dänzer Date: Fri, 25 Sep 2009 18:49:53 +0000 (+0200) Subject: st/xorg: Reject Composite acceleration for some cases not working yet. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=626553f327394b835cecaf4795692028c2378efa;p=mesa.git st/xorg: Reject Composite acceleration for some cases not working yet. --- diff --git a/src/gallium/state_trackers/xorg/xorg_composite.c b/src/gallium/state_trackers/xorg/xorg_composite.c index 93e8c0c7fb8..a97cad48b52 100644 --- a/src/gallium/state_trackers/xorg/xorg_composite.c +++ b/src/gallium/state_trackers/xorg/xorg_composite.c @@ -287,6 +287,16 @@ boolean xorg_composite_accelerated(int op, unsigned accel_ops_count = sizeof(accelerated_ops)/sizeof(struct acceleration_info); + if (pSrcPicture->pSourcePict) { + /* Gradients not yet supported */ + if (pSrcPicture->pSourcePict->type != SourcePictTypeSolidFill) + return FALSE; + + /* Solid source with mask not yet handled properly */ + if (pMaskPicture) + return FALSE; + } + for (i = 0; i < accel_ops_count; ++i) { if (op == accelerated_ops[i].op) { /* Check for unsupported component alpha */