summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2011-01-16 17:43:30 +0800
committerChia-I Wu <olvaffe@gmail.com>2011-03-16 20:18:39 +0800
commit80a8e7d3d192fdd73ded886f308bb3bc25e47b29 (patch)
treebfc60d52d4093f7ac8502d815290da4abb41f615 /src/mesa/drivers/dri/i965
parenta0f0662e0c059456f5100d676939c65fb1ab30f0 (diff)
i965c: Fix a declaration in for loop.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_pass2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_pass2.c b/src/mesa/drivers/dri/i965/brw_wm_pass2.c
index 8c2b9e7020..b55c354101 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_pass2.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_pass2.c
@@ -85,7 +85,7 @@ static void init_registers( struct brw_wm_compile *c )
prealloc_reg(c, &c->creg[j], i++);
if (intel->gen >= 6) {
- for (unsigned int j = 0; j < FRAG_ATTRIB_MAX; j++) {
+ for (j = 0; j < FRAG_ATTRIB_MAX; j++) {
if (brw->fragment_program->Base.InputsRead & BITFIELD64_BIT(j)) {
nr_interp_regs++;
prealloc_reg(c, &c->payload.input_interp[j], i++);