i965/fs: rename our lower_d2f pass to lower_d2x
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 18 Jan 2016 10:31:36 +0000 (11:31 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:09 +0000 (11:25 +0200)
Since it no longer handles conversions from double to float but from
double to various other 32-bit types.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp [moved from src/mesa/drivers/dri/i965/brw_fs_lower_d2f.cpp with 99% similarity]

index cb244ef..fa5cf5a 100644 (file)
@@ -26,7 +26,7 @@ i965_compiler_FILES = \
        brw_fs.h \
        brw_fs_live_variables.cpp \
        brw_fs_live_variables.h \
-       brw_fs_lower_d2f.cpp \
+       brw_fs_lower_d2x.cpp \
        brw_fs_lower_pack.cpp \
        brw_fs_nir.cpp \
        brw_fs_reg_allocate.cpp \
index 7097742..3d331d1 100644 (file)
@@ -5359,7 +5359,7 @@ fs_visitor::optimize()
       OPT(dead_code_eliminate);
    }
 
-   if (OPT(lower_d2f)) {
+   if (OPT(lower_d2x)) {
       OPT(opt_copy_propagate);
       OPT(dead_code_eliminate);
    }
index b3265fd..b906f3d 100644 (file)
@@ -174,7 +174,7 @@ public:
    void lower_uniform_pull_constant_loads();
    bool lower_load_payload();
    bool lower_pack();
-   bool lower_d2f();
+   bool lower_d2x();
    bool lower_logical_sends();
    bool lower_integer_multiplication();
    bool lower_minmax();
@@ -28,7 +28,7 @@
 using namespace brw;
 
 bool
-fs_visitor::lower_d2f()
+fs_visitor::lower_d2x()
 {
    bool progress = false;