summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-01-13 22:07:24 +0000
committerJosé Fonseca <[email protected]>2010-01-13 22:07:24 +0000
commit7df4c88088ecf34764c558b4f7fe7ef6c82327bb (patch)
tree20df3f51be4360ffbd06dd1d5969ca247be96640
parenta1acbff299c444913418e65da473745cd901a2db (diff)
llvmpipe: Opaque shader implies complete colormask too.
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 1ed9a2f5bfa..ea5868dee18 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -1023,8 +1023,10 @@ llvmpipe_update_fs(struct llvmpipe_context *lp)
shader->current = variant;
/* TODO: put this in the variant */
+ /* TODO: most of these can be relaxed, in particular the colormask */
opaque = !key.blend.logicop_enable &&
!key.blend.blend_enable &&
+ key.blend.colormask == 0xf &&
!key.alpha.enabled &&
!key.depth.enabled &&
!shader->info.uses_kill