diff options
-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; } |