st/xa: Fix component alpha check
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 14 Dec 2011 08:37:09 +0000 (09:37 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 15 Dec 2011 07:27:47 +0000 (08:27 +0100)
Component alpha only affects mask pictures.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/state_trackers/xa/xa_composite.c

index 0659c77be53ec7445c279e3b31e1c083d6a9c2f0..43940e768d877bd7d82c3cacbecc64d9b7752a9b 100644 (file)
@@ -113,8 +113,7 @@ blend_for_op(struct xa_composite_blend *blend,
     /*
      * Temporarily disable component alpha since it appears buggy.
      */
-    if (src_pic->component_alpha ||
-       (mask_pic && mask_pic->component_alpha))
+    if (mask_pic && mask_pic->component_alpha)
        return FALSE;
 
     /*