From: Thomas Sondergaard Date: Tue, 7 Jan 2014 20:31:00 +0000 (-0700) Subject: mesa: Work around internal compiler error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fcddd325ce3dc5dfdafc95767542590ae860c45;p=mesa.git 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" Reviewed-by: Brian Paul Reviewed-by: Ian Romanick --- 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); } }