[Mesa-dev] [PATCH 05/20] i965/vec4: Remove vec4_visitor::emit_before().

Matt Turner mattst88 at gmail.com
Tue Sep 2 21:34:16 PDT 2014


---
 src/mesa/drivers/dri/i965/brw_vec4.h           |  3 ---
 src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 11 -----------
 2 files changed, 14 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h
index e752415..9706d28 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.h
+++ b/src/mesa/drivers/dri/i965/brw_vec4.h
@@ -405,9 +405,6 @@ public:
    vec4_instruction *emit(enum opcode opcode, dst_reg dst,
 			  src_reg src0, src_reg src1, src_reg src2);
 
-   vec4_instruction *emit_before(vec4_instruction *inst,
-				 vec4_instruction *new_inst);
-
    vec4_instruction *MOV(const dst_reg &dst, const src_reg &src0);
    vec4_instruction *NOT(const dst_reg &dst, const src_reg &src0);
    vec4_instruction *RNDD(const dst_reg &dst, const src_reg &src0);
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 300da35..86280ba 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -67,17 +67,6 @@ vec4_visitor::emit(vec4_instruction *inst)
 }
 
 vec4_instruction *
-vec4_visitor::emit_before(vec4_instruction *inst, vec4_instruction *new_inst)
-{
-   new_inst->ir = inst->ir;
-   new_inst->annotation = inst->annotation;
-
-   inst->insert_before(new_inst);
-
-   return inst;
-}
-
-vec4_instruction *
 vec4_visitor::emit(enum opcode opcode, dst_reg dst,
 		   src_reg src0, src_reg src1, src_reg src2)
 {
-- 
1.8.5.5



More information about the mesa-dev mailing list