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 0659c77..43940e7 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;
 
     /*