diff options
author | Kenneth Graunke <[email protected]> | 2013-07-03 00:49:28 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-09 14:08:51 -0700 |
commit | 86f2711722dc10c25c2fabc09d8bd020a1ba6029 (patch) | |
tree | 50e7e2107a5d2c2276b1411cd8f211b8847b6747 /src/mesa/drivers | |
parent | 18a223d3237d67a4d38bbab10dc4ab470180cc92 (diff) |
i965: Remove pointless intel_context parameter from try_copy_propagate.
It's already part of the visitor class.
Signed-off-by: Kenneth Graunke <[email protected]>
Acked-by: Chris Forbes <[email protected]>
Acked-by: Paul Berry <[email protected]>
Acked-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.h | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | 5 |
2 files changed, 3 insertions, 5 deletions
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; } |