summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2013-10-16 11:40:41 -0700
committerPaul Berry <stereotype441@gmail.com>2013-10-24 22:00:37 -0700
commit8bb15813e3047820a95724e4257aa2c862eeb31a (patch)
tree80551ba7c4ba4581f03c5fbdec3e1e1947d9ce7a /src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
parent3da2c5123d043a670ebad7d01c6cba37c915b4c9 (diff)
downloadexternal_mesa3d-8bb15813e3047820a95724e4257aa2c862eeb31a.zip
external_mesa3d-8bb15813e3047820a95724e4257aa2c862eeb31a.tar.gz
external_mesa3d-8bb15813e3047820a95724e4257aa2c862eeb31a.tar.bz2
i965/vec4: Add the ability for attributes to be interleaved.
When geometry shaders are operated in "single" or "dual instanced" mode, a single set of geometry shader inputs is interleaved into the thread payload (with each payload register containing a pair of inputs) in order to save register space. This patch modifies vec4_visitor::lower_attributes_to_hw_regs so that it can handle the interleaved format. Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
index 0893c95..08a55a3 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
@@ -110,7 +110,7 @@ vec4_gs_visitor::setup_payload()
reg = setup_varying_inputs(reg, attribute_map);
- lower_attributes_to_hw_regs(attribute_map);
+ lower_attributes_to_hw_regs(attribute_map, false /* interleaved */);
this->first_non_payload_grf = reg;
}