summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2019-06-12 14:49:05 +0200
committerAlejandro Piñeiro <[email protected]>2019-06-13 11:45:18 +0200
commit17c2c9cd67797e8e741859015c123b26c4fa293f (patch)
treefd55107328ac8d1cbfa65534db878f7faa634639 /src
parentca6bf9a6cd0a58aba24d3873c9a4938cd548cf10 (diff)
v3d: fix checking twice auf flag
Seems a C&P error, and should check for auf/muf. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110902 Fixes: 8f065596d22ab000c53f "v3d: Add an optimization pass for redundant flags updates." Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/broadcom/compiler/vir_opt_redundant_flags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/broadcom/compiler/vir_opt_redundant_flags.c b/src/broadcom/compiler/vir_opt_redundant_flags.c
index 61ebf5dfa24..8749f3cd647 100644
--- a/src/broadcom/compiler/vir_opt_redundant_flags.c
+++ b/src/broadcom/compiler/vir_opt_redundant_flags.c
@@ -102,7 +102,7 @@ vir_opt_redundant_flags_block(struct v3d_compile *c, struct qblock *block)
vir_for_each_inst(inst, block) {
if (inst->qpu.type != V3D_QPU_INSTR_TYPE_ALU ||
inst->qpu.flags.auf != V3D_QPU_UF_NONE ||
- inst->qpu.flags.auf != V3D_QPU_UF_NONE) {
+ inst->qpu.flags.muf != V3D_QPU_UF_NONE) {
last_flags = NULL;
continue;
}