i965: Also increment attribute location when skipping unused slots.
authorEric Anholt <eric@anholt.net>
Fri, 1 Oct 2010 18:44:27 +0000 (11:44 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 1 Oct 2010 19:19:21 +0000 (12:19 -0700)
Fixes glsl1-texcoord varying.

src/mesa/drivers/dri/i965/brw_fs.cpp

index 1968e7fde0e759d89033f41112986e30e0a79181..95671412296f18cca7668c8cfb28a50d6db0760e 100644 (file)
@@ -786,6 +786,7 @@ fs_visitor::emit_general_interpolation(ir_variable *ir)
             * we'd fall over later trying to find the setup data.
             */
            attr.reg_offset += type->vector_elements;
+           location++;
            continue;
         }