From 7df4c88088ecf34764c558b4f7fe7ef6c82327bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 13 Jan 2010 22:07:24 +0000 Subject: [PATCH] llvmpipe: Opaque shader implies complete colormask too. --- src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 1ed9a2f..ea5868d 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 -- 2.7.4