i965/vec4: Rename try_copy/constant_propagat{ion,e} to match the fs.
authorMatt Turner <mattst88@gmail.com>
Tue, 24 Jun 2014 05:12:03 +0000 (22:12 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 25 Jun 2014 20:00:55 +0000 (13:00 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp

index 366ef02a510b645bf1714fefd0536a2c3e710fd3..554e0450e71b69147bc265bc11e991da95b87e8b 100644 (file)
@@ -496,8 +496,8 @@ public:
                               vec4_instruction *pre_rhs_inst,
                               vec4_instruction *last_rhs_inst);
 
-   bool try_copy_propagation(vec4_instruction *inst, int arg,
-                             src_reg *values[4]);
+   bool try_copy_propagate(vec4_instruction *inst, int arg,
+                           src_reg *values[4]);
 
    /** Walks an exec_list of ir_instruction and sends it through this visitor. */
    void visit_instructions(const exec_list *list);
index 278ec7b3601c6b275b2fa3d20e2b2be2f98a3ec7..d992a864fc19116cbefda8df2aef91c2c761aeac 100644 (file)
@@ -73,8 +73,8 @@ is_channel_updated(vec4_instruction *inst, src_reg *values[4], int ch)
 }
 
 static bool
-try_constant_propagation(struct brw_context *brw, vec4_instruction *inst,
-                         int arg, src_reg *values[4])
+try_constant_propagate(struct brw_context *brw, vec4_instruction *inst,
+                       int arg, src_reg *values[4])
 {
    /* For constant propagation, we only handle the same constant
     * across all 4 channels.  Some day, we should handle the 8-bit
@@ -212,8 +212,8 @@ is_logic_op(enum opcode opcode)
 }
 
 bool
-vec4_visitor::try_copy_propagation(vec4_instruction *inst, int arg,
-                                   src_reg *values[4])
+vec4_visitor::try_copy_propagate(vec4_instruction *inst, int arg,
+                                 src_reg *values[4])
 {
    /* For constant propagation, we only handle the same constant
     * across all 4 channels.  Some day, we should handle the 8-bit
@@ -367,8 +367,8 @@ vec4_visitor::opt_copy_propagation()
         if (c != 4)
            continue;
 
-        if (try_constant_propagation(brw, inst, i, values) ||
-            try_copy_propagation(inst, i, values))
+        if (try_constant_propagate(brw, inst, i, values) ||
+            try_copy_propagate(inst, i, values))
            progress = true;
       }