diff options
author | Eric Anholt <[email protected]> | 2016-05-02 12:36:56 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-05-06 10:25:55 -0700 |
commit | 419fee92eef229314e28879a7b8a6a8dc3b4b549 (patch) | |
tree | 76b6ae698ec358e83bcd26118c3e884b5dda80b7 /src | |
parent | 1387e722cde7c33ad07766eb715bc74e84a43e80 (diff) |
vc4: When emitting an instruction to an existing temp, mark it non-SSA.
Prevents a bug in the later control-flow support series.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index 7ea6ec8a50f..04ca8ed7f4b 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -533,6 +533,8 @@ static inline struct qinst * \ qir_##name##_dest(struct vc4_compile *c, struct qreg dest, \ struct qreg a) \ { \ + if (dest.file == QFILE_TEMP) \ + c->defs[dest.index] = NULL; \ return qir_emit_nodef(c, qir_inst(QOP_##name, dest, a, \ c->undef)); \ } |