summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-04-25 11:03:38 -0700
committerMatt Turner <mattst88@gmail.com>2013-04-25 18:27:39 -0700
commit0c1d87b0d7e2c9f1ae6e838a8fa7f074557e45f0 (patch)
treebce1895a19eb8941458a63282fc9456eb73d017c /src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
parentc0f67a127b0b3e4bb715d1562a82c984d160280e (diff)
downloadexternal_mesa3d-0c1d87b0d7e2c9f1ae6e838a8fa7f074557e45f0.zip
external_mesa3d-0c1d87b0d7e2c9f1ae6e838a8fa7f074557e45f0.tar.gz
external_mesa3d-0c1d87b0d7e2c9f1ae6e838a8fa7f074557e45f0.tar.bz2
i965/vs: Add support for LRP instruction.
Only 13 affected programs in shader-db, but they were all helped. total instructions in shared programs: 368877 -> 368851 (-0.01%) instructions in affected programs: 1576 -> 1550 (-1.65%) Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
index 51ee475..f2c6cd6 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
@@ -215,6 +215,9 @@ vec4_visitor::try_copy_propagation(struct intel_context *intel,
if (has_source_modifiers && !can_do_source_mods(inst))
return false;
+ if (inst->opcode == BRW_OPCODE_LRP && value.file == UNIFORM)
+ return false;
+
/* We can't copy-propagate a UD negation into a condmod
* instruction, because the condmod ends up looking at the 33-bit
* signed accumulator value instead of the 32-bit value we wanted