diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-08-09 23:34:01 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-08-29 09:21:27 +0100 |
commit | 29d94a9cbb7858cc8b0cfb05c0bb66f56a6acfa5 (patch) | |
tree | 5dba68951c37c678e744dac3fd6b05d908bdb31c /src/gallium/drivers/llvmpipe/lp_quad_blend.c | |
parent | 2d6b39f05edcd575b1e10d53f96a38bec848fa67 (diff) |
llvmpipe: Code generate color masking.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_quad_blend.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_quad_blend.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_quad_blend.c b/src/gallium/drivers/llvmpipe/lp_quad_blend.c index fa2e902b6e..2f4c46d5cb 100644 --- a/src/gallium/drivers/llvmpipe/lp_quad_blend.c +++ b/src/gallium/drivers/llvmpipe/lp_quad_blend.c @@ -148,31 +148,6 @@ logicop_quad(struct quad_stage *qs, } -static void -colormask_quad(struct quad_stage *qs, - float (*quadColor)[4], - float (*dest)[4]) -{ - struct llvmpipe_context *llvmpipe = qs->llvmpipe; - - /* R */ - if (!(llvmpipe->blend->base.colormask & PIPE_MASK_R)) - COPY_4V(quadColor[0], dest[0]); - - /* G */ - if (!(llvmpipe->blend->base.colormask & PIPE_MASK_G)) - COPY_4V(quadColor[1], dest[1]); - - /* B */ - if (!(llvmpipe->blend->base.colormask & PIPE_MASK_B)) - COPY_4V(quadColor[2], dest[2]); - - /* A */ - if (!(llvmpipe->blend->base.colormask & PIPE_MASK_A)) - COPY_4V(quadColor[3], dest[3]); -} - - static void blend_begin(struct quad_stage *qs) { } @@ -225,9 +200,6 @@ blend_run(struct quad_stage *qs, blend->jit_function( quadColor, dest, llvmpipe->blend_color, quadColor ); } - if (blend->base.colormask != 0xf) - colormask_quad( qs, quadColor, dest ); - /* Output color values */ for (j = 0; j < QUAD_SIZE; j++) { |