summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_output.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_output.c b/src/mesa/pipe/softpipe/sp_quad_output.c
index f04a550e3d..bfd7baa946 100644
--- a/src/mesa/pipe/softpipe/sp_quad_output.c
+++ b/src/mesa/pipe/softpipe/sp_quad_output.c
@@ -49,6 +49,7 @@ output_quad(struct quad_stage *qs, struct quad_header *quad)
/* in-tile pos: */
const int itx = quad->x0 % TILE_SIZE;
const int ity = quad->y0 % TILE_SIZE;
+ float (*quadColor)[4] = quad->outputs.color;
int i, j;
/* get/swizzle dest colors */
@@ -57,7 +58,7 @@ output_quad(struct quad_stage *qs, struct quad_header *quad)
int x = itx + (j & 1);
int y = ity + (j >> 1);
for (i = 0; i < 4; i++) { /* loop over color chans */
- tile->data.color[y][x][i] = quad->outputs.color[i][j];
+ tile->data.color[y][x][i] = quadColor[i][j];
}
}
}