llvmpipe: Opaque shader implies complete colormask too.

This commit is contained in:
José Fonseca 2010-01-13 22:07:24 +00:00
parent a1acbff299
commit 7df4c88088

View 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