llvmpipe: Opaque shader implies complete colormask too.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 13 Jan 2010 22:07:24 +0000 (22:07 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 13 Jan 2010 22:07:24 +0000 (22:07 +0000)
src/gallium/drivers/llvmpipe/lp_state_fs.c

index 1ed9a2f5bfa35b1dabda49676f64ecad8e22fa93..ea5868dee1844d491209c2181a69624d650dcd6a 100644 (file)
@@ -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