diff options
author | Eric Anholt <[email protected]> | 2019-04-17 14:07:20 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-04-18 13:24:55 -0700 |
commit | 1ce143ca19950d52a1b5eec418a5c90843049304 (patch) | |
tree | c2caf07806dcbe0e4c2515da33f91b373cea3800 /src/broadcom/compiler | |
parent | db4a70e678706d2bdc3f2208a9da48db4c148f9e (diff) |
v3d: Fix an invalid reuse of flags generation from before a thrsw.
Noticed while debugging the last GLES 3.1 failure, though it doesn't seem
to affect that bug.
Diffstat (limited to 'src/broadcom/compiler')
-rw-r--r-- | src/broadcom/compiler/vir_opt_redundant_flags.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir_opt_redundant_flags.c b/src/broadcom/compiler/vir_opt_redundant_flags.c index b61514f6c99..61ebf5dfa24 100644 --- a/src/broadcom/compiler/vir_opt_redundant_flags.c +++ b/src/broadcom/compiler/vir_opt_redundant_flags.c @@ -107,6 +107,10 @@ vir_opt_redundant_flags_block(struct v3d_compile *c, struct qblock *block) continue; } + /* Flags aren't preserved across a thrsw. */ + if (inst->qpu.sig.thrsw) + last_flags = NULL; + if (inst->qpu.flags.apf != V3D_QPU_PF_NONE || inst->qpu.flags.mpf != V3D_QPU_PF_NONE) { if (last_flags && |