summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-03-16 19:31:02 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-03-22 16:46:15 -0700
commit9881eab197c70b85346d682b525b8ea9ed241862 (patch)
tree8fc67b0e3ee1d0eeaee5ec4540efe3e19ca787b8 /src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
parent01425c45b32fa7f323515b05697c6cc0d245ad32 (diff)
downloadexternal_mesa3d-9881eab197c70b85346d682b525b8ea9ed241862.zip
external_mesa3d-9881eab197c70b85346d682b525b8ea9ed241862.tar.gz
external_mesa3d-9881eab197c70b85346d682b525b8ea9ed241862.tar.bz2
i965/fs: Don't constant-fold RCP
No shader-db changes on Broadwell Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp15
1 files changed, 0 insertions, 15 deletions
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 2616e65..ffab0a8 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
@@ -654,21 +654,6 @@ fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry)
}
break;
- case SHADER_OPCODE_RCP:
- /* The hardware doesn't do math on immediate values
- * (because why are you doing that, seriously?), but
- * the correct answer is to just constant fold it
- * anyway.
- */
- assert(i == 0);
- if (inst->src[0].f != 0.0f) {
- inst->opcode = BRW_OPCODE_MOV;
- inst->src[0] = val;
- inst->src[0].f = 1.0f / inst->src[0].f;
- progress = true;
- }
- break;
-
case SHADER_OPCODE_UNTYPED_ATOMIC:
case SHADER_OPCODE_UNTYPED_SURFACE_READ:
case SHADER_OPCODE_UNTYPED_SURFACE_WRITE: