diff options
author | Thomas Sondergaard <[email protected]> | 2014-01-07 13:31:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-01-08 17:33:06 -0700 |
commit | 8fcddd325ce3dc5dfdafc95767542590ae860c45 (patch) | |
tree | 58e48c3691e73ef35f3e39d942c3d9dd7bbfb2b0 /src/gallium/drivers/softpipe | |
parent | 067ad6e53ec2545970b7698d06d2a537da194678 (diff) |
mesa: Work around internal compiler error
This small rearrangement avoids MSVC 2013 ICE. Also, this should be
a better memory access order.
Cc: "10.0" <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_quad_blend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_quad_blend.c b/src/gallium/drivers/softpipe/sp_quad_blend.c index 48d1a2e6740..d122586559d 100644 --- a/src/gallium/drivers/softpipe/sp_quad_blend.c +++ b/src/gallium/drivers/softpipe/sp_quad_blend.c @@ -860,8 +860,8 @@ clamp_colors(float (*quadColor)[4]) { unsigned i, j; - for (j = 0; j < TGSI_QUAD_SIZE; j++) { - for (i = 0; i < 4; i++) { + for (i = 0; i < 4; i++) { + for (j = 0; j < TGSI_QUAD_SIZE; j++) { quadColor[i][j] = CLAMP(quadColor[i][j], 0.0F, 1.0F); } } |