i965/fs: Make try_constant_propagate() static.
authorMatt Turner <mattst88@gmail.com>
Tue, 24 Jun 2014 05:05:03 +0000 (22:05 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 25 Jun 2014 20:00:51 +0000 (13:00 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp

index 0da79ba1c4e4560b098f881d7785bd793df3d9b1..af8b0b9030db71f13989074acbc38e6efeb5fef8 100644 (file)
@@ -373,7 +373,6 @@ public:
    bool opt_cse_local(bblock_t *block, exec_list *aeb);
    bool opt_copy_propagate();
    bool try_copy_propagate(fs_inst *inst, int arg, acp_entry *entry);
-   bool try_constant_propagate(fs_inst *inst, acp_entry *entry);
    bool opt_copy_propagate_local(void *mem_ctx, bblock_t *block,
                                  exec_list *acp);
    void opt_drop_redundant_mov_to_flags();
index 0a7b8b8952ab5ca74e6f12f2c6c9e80c29a16260..28c6ca7ac29ff3f077471922f3f5bd8c9453f661 100644 (file)
@@ -367,8 +367,8 @@ fs_visitor::try_copy_propagate(fs_inst *inst, int arg, acp_entry *entry)
 }
 
 
-bool
-fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry)
+static bool
+try_constant_propagate(fs_inst *inst, acp_entry *entry)
 {
    bool progress = false;