From ff5ce9289b5159e7de34706b31be771d3e3cefd6 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 1 Oct 2010 11:44:27 -0700 Subject: [PATCH] i965: Also increment attribute location when skipping unused slots. Fixes glsl1-texcoord varying. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 1968e7fde0e..95671412296 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; } -- 2.30.2