diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-09 21:44:26 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-09 21:44:26 -0700 |
commit | 63e2ab83f6f3955c230bf71662136b34ff46dfe2 (patch) | |
tree | 39bd85bd9f74c56906e55dcabad89bb4871e6705 /src/mesa/pipe/softpipe/sp_quad_colormask.c | |
parent | 98848382731b71a51e4a80f1820f009e70f06a25 (diff) |
use quadColor local var
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_colormask.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_colormask.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_colormask.c b/src/mesa/pipe/softpipe/sp_quad_colormask.c index f5e0a32d1b..867cc0725a 100644 --- a/src/mesa/pipe/softpipe/sp_quad_colormask.c +++ b/src/mesa/pipe/softpipe/sp_quad_colormask.c @@ -52,6 +52,7 @@ colormask_quad(struct quad_stage *qs, struct quad_header *quad) = sp_get_cached_tile(softpipe, softpipe->cbuf_cache[softpipe->current_cbuf], quad->x0, quad->y0); + float (*quadColor)[4] = quad->outputs.color; uint i, j; /* get/swizzle dest colors */ @@ -65,19 +66,19 @@ colormask_quad(struct quad_stage *qs, struct quad_header *quad) /* R */ if (!(softpipe->blend->colormask & PIPE_MASK_R)) - COPY_4V(quad->outputs.color[0], dest[0]); + COPY_4V(quadColor[0], dest[0]); /* G */ if (!(softpipe->blend->colormask & PIPE_MASK_G)) - COPY_4V(quad->outputs.color[1], dest[1]); + COPY_4V(quadColor[1], dest[1]); /* B */ if (!(softpipe->blend->colormask & PIPE_MASK_B)) - COPY_4V(quad->outputs.color[2], dest[2]); + COPY_4V(quadColor[2], dest[2]); /* A */ if (!(softpipe->blend->colormask & PIPE_MASK_A)) - COPY_4V(quad->outputs.color[3], dest[3]); + COPY_4V(quadColor[3], dest[3]); /* pass quad to next stage */ qs->next->run(qs->next, quad); |