projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1acbff
)
llvmpipe: Opaque shader implies complete colormask too.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 13 Jan 2010 22:07:24 +0000
(22:07 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 13 Jan 2010 22:07:24 +0000
(22:07 +0000)
src/gallium/drivers/llvmpipe/lp_state_fs.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_state_fs.c
b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 1ed9a2f5bfa35b1dabda49676f64ecad8e22fa93..ea5868dee1844d491209c2181a69624d650dcd6a 100644
(file)
--- 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