From: Eric Anholt Date: Fri, 1 Oct 2010 18:44:27 +0000 (-0700) Subject: i965: Also increment attribute location when skipping unused slots. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff5ce9289b5159e7de34706b31be771d3e3cefd6;p=mesa.git i965: Also increment attribute location when skipping unused slots. Fixes glsl1-texcoord varying. --- 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; }