summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h
diff options
context:
space:
mode:
authorAlejandro PiƱeiro <apinheiro@igalia.com>2015-06-16 17:01:29 +0200
committerJason Ekstrand <jason.ekstrand@intel.com>2015-08-03 09:40:47 -0700
commit01c5617c8edc2f392363e9f8861d62a9fc9aa973 (patch)
tree73d1ac26eec50ce9a43acb1ede54a17e6b1ad84a /src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h
parent195156e571e851273c135847f91ed73b3bfc1914 (diff)
downloadexternal_mesa3d-01c5617c8edc2f392363e9f8861d62a9fc9aa973.zip
external_mesa3d-01c5617c8edc2f392363e9f8861d62a9fc9aa973.tar.gz
external_mesa3d-01c5617c8edc2f392363e9f8861d62a9fc9aa973.tar.bz2
i965/vec4: Redefine make_reg_for_system_value() to allow reuse in NIR->vec4 pass
The new virtual method is more flexible, it has a signature: dst_reg *make_reg_for_system_value(int location, const glsl_type *type); v2 (Jason Ekstrand): Use the new version in unit tests so make check passes again Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h
index e51399d..54cd2a1 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h
+++ b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.h
@@ -76,7 +76,8 @@ public:
int shader_time_index);
protected:
- virtual dst_reg *make_reg_for_system_value(ir_variable *ir);
+ virtual dst_reg *make_reg_for_system_value(int location,
+ const glsl_type *type);
virtual void setup_payload();
virtual void emit_prolog();
virtual void emit_program_code();