aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-10-24 17:49:03 -0700
committerEric Anholt <[email protected]>2015-10-26 16:48:34 -0700
commit6eb0760f4896d2dd45820ec1fcab36496228b761 (patch)
tree08f9e8c72a2de397461485684e22542860ad73b3 /src/gallium/drivers
parent0ccacfa0170f19e08228e7404e77a9da8f5f633c (diff)
vc4: Only copy propagate raw MOVs.
No problems being fixed, but needed for the new unpack changes.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/vc4/vc4_opt_copy_propagation.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c b/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
index fd2539aed95..b46be24ad0c 100644
--- a/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
+++ b/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
@@ -45,14 +45,9 @@ qir_opt_copy_propagation(struct vc4_compile *c)
int index = inst->src[i].index;
if (inst->src[i].file == QFILE_TEMP &&
c->defs[index] &&
- c->defs[index]->op == QOP_MOV &&
+ qir_is_raw_mov(c->defs[index]) &&
(c->defs[index]->src[0].file == QFILE_TEMP ||
c->defs[index]->src[0].file == QFILE_UNIF)) {
- /* If it has a pack, it shouldn't be an SSA
- * def.
- */
- assert(!c->defs[index]->dst.pack);
-
if (debug) {
fprintf(stderr, "Copy propagate: ");
qir_dump_inst(c, inst);