Module: Mesa Branch: lp-binning Commit: 7df4c88088ecf34764c558b4f7fe7ef6c82327bb URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7df4c88088ecf34764c558b4f7fe7ef6c82327bb
Author: José Fonseca <jfons...@vmware.com> Date: Wed Jan 13 22:07:24 2010 +0000 llvmpipe: Opaque shader implies complete colormask too. --- 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 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 _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit