summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/translate
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-08-16 13:52:57 -0700
committerVinson Lee <[email protected]>2010-08-16 13:52:57 -0700
commitf437ee85f4a6789d7c3be0d68fd26aa257557b83 (patch)
tree35232ed0bc1533b9277cbaf39612aba97ce24de6 /src/gallium/auxiliary/translate
parentecec6df9cfe74dbd16f072bc4bbcd90374f8d2c8 (diff)
translate: Move loop variable declaration outside for loop.
Fixes MSVC build.
Diffstat (limited to 'src/gallium/auxiliary/translate')
-rw-r--r--src/gallium/auxiliary/translate/translate_sse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c
index 035ba531c62..56c5b36ce28 100644
--- a/src/gallium/auxiliary/translate/translate_sse.c
+++ b/src/gallium/auxiliary/translate/translate_sse.c
@@ -849,6 +849,7 @@ static boolean translate_attr_convert( struct translate_sse *p,
else if(!memcmp(&output_desc->channel[0], &input_desc->channel[0], sizeof(output_desc->channel[0])))
{
struct x86_reg tmp = p->tmp_EAX;
+ unsigned i;
if(input_desc->channel[0].size == 8 && input_desc->nr_channels == 4 && output_desc->nr_channels == 4
&& swizzle[0] == UTIL_FORMAT_SWIZZLE_W
&& swizzle[1] == UTIL_FORMAT_SWIZZLE_Z
@@ -862,7 +863,7 @@ static boolean translate_attr_convert( struct translate_sse *p,
return TRUE;
}
- for(unsigned i = 0; i < output_desc->nr_channels; ++i)
+ for(i = 0; i < output_desc->nr_channels; ++i)
{
switch(output_desc->channel[0].size)
{