From 2c5f2f9e31f3cab0e1b712a1054de04ccea2347a Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Fri, 13 Jan 2017 17:49:59 +0100 Subject: [PATCH] i965/vec4: Fix mapping attributes This fixes mapping ATTRx to proper GRFn. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99391 --- src/mesa/drivers/dri/i965/brw_vec4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index 748a068..5e60eb6 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -1739,7 +1739,7 @@ vec4_vs_visitor::setup_attributes(int payload_reg) int needed_slots = (vs_prog_data->double_inputs_read & BITFIELD64_BIT(first)) ? 2 : 1; for (int c = 0; c < needed_slots; c++) { - attribute_map[nr_attributes] = payload_reg + nr_attributes; + attribute_map[first + c] = payload_reg + nr_attributes; nr_attributes++; vs_inputs &= ~BITFIELD64_BIT(first + c); } -- 2.9.3