aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4.h
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-03-22 08:47:49 -0700
committerPaul Berry <[email protected]>2013-04-11 09:25:26 -0700
commit444fce6398556118629ef01204a7d8ff7af0bea3 (patch)
treea299a33ae52e4a3ec0b364b84fd149c3f55fff2c /src/mesa/drivers/dri/i965/brw_vec4.h
parent28fe02ce6e6fa6061cf69af9b292ee6553591473 (diff)
i965/vs: Generalize attribute setup code in preparation for GS.
This patch introduces a new function, vec4_visitor::lower_attributes_to_hw_regs(), which replaces registers of type ATTR in the instruction stream with the hardware registers that store those attributes. This logic will need to be common between the vertex and geometry shaders. Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h
index 87401351d45..27498590ec2 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.h
+++ b/src/mesa/drivers/dri/i965/brw_vec4.h
@@ -480,6 +480,7 @@ public:
protected:
void emit_vertex();
+ void lower_attributes_to_hw_regs(const int *attribute_map);
virtual dst_reg *make_reg_for_system_value(ir_variable *ir) = 0;
virtual int setup_attributes(int payload_reg) = 0;
virtual void emit_prolog() = 0;