From: Kenneth Graunke Date: Wed, 3 Jul 2013 07:49:28 +0000 (-0700) Subject: i965: Remove pointless intel_context parameter from try_copy_propagate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86f2711722dc10c25c2fabc09d8bd020a1ba6029;p=mesa.git i965: Remove pointless intel_context parameter from try_copy_propagate. It's already part of the visitor class. Signed-off-by: Kenneth Graunke Acked-by: Chris Forbes Acked-by: Paul Berry Acked-by: Anuj Phogat --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index a72d6941394..dd00ace10d2 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -391,8 +391,7 @@ public: vec4_instruction *pre_rhs_inst, vec4_instruction *last_rhs_inst); - bool try_copy_propagation(struct intel_context *intel, - vec4_instruction *inst, int arg, + bool try_copy_propagation(vec4_instruction *inst, int arg, src_reg *values[4]); /** Walks an exec_list of ir_instruction and sends it through this visitor. */ diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp index 64f6ccc98f7..c28d0dee2d8 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp @@ -162,8 +162,7 @@ try_constant_propagation(vec4_instruction *inst, int arg, src_reg *values[4]) } bool -vec4_visitor::try_copy_propagation(struct intel_context *intel, - vec4_instruction *inst, int arg, +vec4_visitor::try_copy_propagation(vec4_instruction *inst, int arg, src_reg *values[4]) { /* For constant propagation, we only handle the same constant @@ -306,7 +305,7 @@ vec4_visitor::opt_copy_propagation() continue; if (try_constant_propagation(inst, i, values) || - try_copy_propagation(intel, inst, i, values)) + try_copy_propagation(inst, i, values)) progress = true; }