Mesa (master): mesa: Work around internal compiler error
Brian Paul
brianp at kemper.freedesktop.org
Thu Jan 9 00:34:57 UTC 2014
Module: Mesa
Branch: master
Commit: 8fcddd325ce3dc5dfdafc95767542590ae860c45
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8fcddd325ce3dc5dfdafc95767542590ae860c45
Author: Thomas Sondergaard <ts at medical-insight.com>
Date: Tue Jan 7 13:31:00 2014 -0700
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 at lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/gallium/drivers/softpipe/sp_quad_blend.c | 4 ++--
1 file 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 48d1a2e..d122586 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);
}
}
More information about the mesa-commit
mailing list