diff options
Diffstat (limited to 'src/intel/compiler/brw_vec4_gs_visitor.cpp')
-rw-r--r-- | src/intel/compiler/brw_vec4_gs_visitor.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/intel/compiler/brw_vec4_gs_visitor.cpp b/src/intel/compiler/brw_vec4_gs_visitor.cpp index b281bcf49f4..791ee7e1dff 100644 --- a/src/intel/compiler/brw_vec4_gs_visitor.cpp +++ b/src/intel/compiler/brw_vec4_gs_visitor.cpp @@ -53,26 +53,6 @@ vec4_gs_visitor::vec4_gs_visitor(const struct brw_compiler *compiler, } -dst_reg * -vec4_gs_visitor::make_reg_for_system_value(int location) -{ - dst_reg *reg = new(mem_ctx) dst_reg(this, glsl_type::int_type); - - switch (location) { - case SYSTEM_VALUE_INVOCATION_ID: - this->current_annotation = "initialize gl_InvocationID"; - if (gs_prog_data->invocations > 1) - emit(GS_OPCODE_GET_INSTANCE_ID, *reg); - else - emit(MOV(*reg, brw_imm_ud(0))); - break; - default: - unreachable("not reached"); - } - - return reg; -} - static inline struct brw_reg attribute_to_hw_reg(int attr, brw_reg_type type, bool interleaved) { |