diff options
author | Thomas Sondergaard <ts@medical-insight.com> | 2014-01-07 13:31:00 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2014-01-09 12:23:14 -0800 |
commit | 0df489f0e076f077e363a28171405ee4e2def12b (patch) | |
tree | da185f69b7279991cc2178eb84c7bffc2f4564c1 /src | |
parent | 31e2824d995a24b5ae6b63980fc806ff1dd65b4f (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" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 8fcddd325ce3dc5dfdafc95767542590ae860c45)
Diffstat (limited to 'src')
-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); } } |