Mesa (master): st/xa: Fix component alpha check

Thomas Hellstrom thomash at kemper.freedesktop.org
Thu Dec 15 07:29:18 UTC 2011


Module: Mesa
Branch: master
Commit: 11c9459ba0b0c0afa1ae0ea41b0edaf069fc421a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=11c9459ba0b0c0afa1ae0ea41b0edaf069fc421a

Author: Thomas Hellstrom <thellstrom at vmware.com>
Date:   Wed Dec 14 09:37:09 2011 +0100

st/xa: Fix component alpha check

Component alpha only affects mask pictures.

Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob at vmware.com>

---

 src/gallium/state_trackers/xa/xa_composite.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/xa/xa_composite.c b/src/gallium/state_trackers/xa/xa_composite.c
index 0659c77..43940e7 100644
--- a/src/gallium/state_trackers/xa/xa_composite.c
+++ b/src/gallium/state_trackers/xa/xa_composite.c
@@ -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;
 
     /*




More information about the mesa-commit mailing list