summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-10-01 11:44:27 -0700
committerEric Anholt <eric@anholt.net>2010-10-01 12:19:21 -0700
commitff5ce9289b5159e7de34706b31be771d3e3cefd6 (patch)
tree07ab05fbc80408a321420621ebc801466f5ea473 /src
parent354c40a62411262d1223f439fdaf2176ca9adbe9 (diff)
i965: Also increment attribute location when skipping unused slots.
Fixes glsl1-texcoord varying.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 1968e7fde0..9567141229 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -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;
}