From 11c9459ba0b0c0afa1ae0ea41b0edaf069fc421a Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Wed, 14 Dec 2011 09:37:09 +0100 Subject: [PATCH] st/xa: Fix component alpha check Component alpha only affects mask pictures. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- src/gallium/state_trackers/xa/xa_composite.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/xa/xa_composite.c b/src/gallium/state_trackers/xa/xa_composite.c index 0659c77be53..43940e768d8 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; /* -- 2.30.2