summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-06-23 22:16:02 -0700
committerMatt Turner <mattst88@gmail.com>2014-06-25 13:00:56 -0700
commitd5432e3f45ee3c5b5b824ad941a40c01025a275d (patch)
treebda78c59cd885deeb789302c10c5a85ef78eb7b2 /src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
parent7526df70ea249c26332c35017f7a810332b2deee (diff)
downloadexternal_mesa3d-d5432e3f45ee3c5b5b824ad941a40c01025a275d.zip
external_mesa3d-d5432e3f45ee3c5b5b824ad941a40c01025a275d.tar.gz
external_mesa3d-d5432e3f45ee3c5b5b824ad941a40c01025a275d.tar.bz2
i965/vec4: Make try_copy_propagate() static.
Now that can_do_source_mods() isn't part of the visitor, this doesn't need to be either. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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.cpp8
1 files changed, 4 insertions, 4 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 d992a86..2019d15 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
@@ -211,9 +211,9 @@ is_logic_op(enum opcode opcode)
opcode == BRW_OPCODE_NOT);
}
-bool
-vec4_visitor::try_copy_propagate(vec4_instruction *inst, int arg,
- src_reg *values[4])
+static bool
+try_copy_propagate(struct brw_context *brw, vec4_instruction *inst,
+ int arg, src_reg *values[4])
{
/* For constant propagation, we only handle the same constant
* across all 4 channels. Some day, we should handle the 8-bit
@@ -368,7 +368,7 @@ vec4_visitor::opt_copy_propagation()
continue;
if (try_constant_propagate(brw, inst, i, values) ||
- try_copy_propagate(inst, i, values))
+ try_copy_propagate(brw, inst, i, values))
progress = true;
}