diff options
author | Karol Herbst <[email protected]> | 2018-03-27 03:25:28 +0200 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2018-03-29 03:06:36 +0200 |
commit | 6179a87c1e3b2441691d31ab21973ff43b65dba7 (patch) | |
tree | 44f9c748703b38908e21997ec349e1a340d3bca3 /src/gallium | |
parent | 1dae92f150b4a4f1d8f847a562353629aa3c6ca5 (diff) |
nvc0/ir: fix emiting NOTs with predicates
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp index 58594f02c7f..be7ac182222 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp @@ -853,6 +853,8 @@ void CodeEmitterNVC0::emitNOT(Instruction *i) { assert(i->encSize == 8); + if (i->getPredicate()) + i->moveSources(1, 1); i->setSrc(1, i->src(0)); emitForm_A(i, HEX64(68000000, 000001c3)); } |