Mesa (master): i965/fs: Make try_constant_propagate() static.

Matt Turner mattst88 at kemper.freedesktop.org
Wed Jun 25 20:02:05 UTC 2014


Module: Mesa
Branch: master
Commit: aca4a951ea2bab855bcc2491a3b8996b54639ebd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aca4a951ea2bab855bcc2491a3b8996b54639ebd

Author: Matt Turner <mattst88 at gmail.com>
Date:   Mon Jun 23 22:05:03 2014 -0700

i965/fs: Make try_constant_propagate() static.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_fs.h                    |    1 -
 src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp |    4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 0da79ba..af8b0b9 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -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();
diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
index 0a7b8b8..28c6ca7 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
@@ -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;
 




More information about the mesa-commit mailing list