summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4.cpp
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <jasuarez@igalia.com>2016-04-04 12:47:57 +0200
committerAlejandro PiƱeiro <apinheiro@igalia.com>2016-05-17 09:05:55 +0200
commit7ea09511ca4f58640063cc1ee08386cce5300535 (patch)
treebabe59b2a135bde9e4b28090b7d3113374aea9fb /src/mesa/drivers/dri/i965/brw_vec4.cpp
parentb7423b485e11b768f68e8d5865fbc74b07ee6d48 (diff)
downloadexternal_mesa3d-7ea09511ca4f58640063cc1ee08386cce5300535.zip
external_mesa3d-7ea09511ca4f58640063cc1ee08386cce5300535.tar.gz
external_mesa3d-7ea09511ca4f58640063cc1ee08386cce5300535.tar.bz2
i965/fs: calculate first non-payload GRF using attrib slots
When computing where the first non-payload GRF starts, we can't rely on the number of attributes, as each attribute can be using 1 or 2 slots depending on whether they are a dvec3/4 or other. Instead, we need to use the number of slots used by the attributes. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index ac8dd6f..162b481 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -2120,6 +2120,7 @@ brw_compile_vs(const struct brw_compiler *compiler, void *log_data,
DIV_ROUND_UP(MAX2(nr_attribute_slots, 1), 2);
prog_data->nr_attributes = nr_attributes;
+ prog_data->nr_attribute_slots = nr_attribute_slots;
/* Since vertex shaders reuse the same VUE entry for inputs and outputs
* (overwriting the original contents), we need to make sure the size is