diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-01-13 22:07:24 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-01-13 22:07:24 +0000 |
commit | 7df4c88088ecf34764c558b4f7fe7ef6c82327bb (patch) | |
tree | 20df3f51be4360ffbd06dd1d5969ca247be96640 /src/gallium/drivers/llvmpipe | |
parent | a1acbff299c444913418e65da473745cd901a2db (diff) |
llvmpipe: Opaque shader implies complete colormask too.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 |
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 1ed9a2f5bf..ea5868dee1 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 |