i965: Remove pointless intel_context parameter from try_copy_propagate.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Jul 2013 07:49:28 +0000 (00:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 9 Jul 2013 21:08:51 +0000 (14:08 -0700)
It's already part of the visitor class.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
Acked-by: Paul Berry <stereotype441@gmail.com>
Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp

index a72d694139402f387c7b48d5c339c2086d061f78..dd00ace10d24168590b69e9d16218b7f794ce483 100644 (file)
@@ -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. */
index 64f6ccc98f7bcf453b5e2a3f8238dcdd6d997109..c28d0dee2d82b94d993cf18f59f641effcc6b600 100644 (file)
@@ -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;
       }