Mesa (master): i965: Also increment attribute location when skipping unused slots.

Eric Anholt anholt at kemper.freedesktop.org
Fri Oct 1 19:21:59 UTC 2010


Module: Mesa
Branch: master
Commit: ff5ce9289b5159e7de34706b31be771d3e3cefd6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff5ce9289b5159e7de34706b31be771d3e3cefd6

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Oct  1 11:44:27 2010 -0700

i965: Also increment attribute location when skipping unused slots.

Fixes glsl1-texcoord varying.

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    1 +
 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 1968e7f..9567141 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;
 	 }
 




More information about the mesa-commit mailing list