From 9741cff1ec3bdc0edf4122bf20aa3447dd8cb741 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Mon, 18 Jan 2016 11:31:36 +0100 Subject: [PATCH] i965/fs: rename our lower_d2f pass to lower_d2x Since it no longer handles conversions from double to float but from double to various other 32-bit types. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/Makefile.sources | 2 +- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- .../dri/i965/{brw_fs_lower_d2f.cpp => brw_fs_lower_d2x.cpp} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/mesa/drivers/dri/i965/{brw_fs_lower_d2f.cpp => brw_fs_lower_d2x.cpp} (99%) diff --git a/src/mesa/drivers/dri/i965/Makefile.sources b/src/mesa/drivers/dri/i965/Makefile.sources index cb244ef4357..fa5cf5a477c 100644 --- a/src/mesa/drivers/dri/i965/Makefile.sources +++ b/src/mesa/drivers/dri/i965/Makefile.sources @@ -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 \ diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 7097742115b..3d331d191b7 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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); } diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index b3265fd2f03..b906f3d0a5f 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -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(); diff --git a/src/mesa/drivers/dri/i965/brw_fs_lower_d2f.cpp b/src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp similarity index 99% rename from src/mesa/drivers/dri/i965/brw_fs_lower_d2f.cpp rename to src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp index ed6df4a8103..9a8aabf8487 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_lower_d2f.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_lower_d2x.cpp @@ -28,7 +28,7 @@ using namespace brw; bool -fs_visitor::lower_d2f() +fs_visitor::lower_d2x() { bool progress = false; -- 2.30.2