From 4b1a167a2bce936beabd03ffc313a63d8deeed09 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 30 May 2016 17:25:41 -0400 Subject: [PATCH] nvc0/ir: fix spilling predicates to registers Signed-off-by: Ilia Mirkin Reviewed-by: Samuel Pitoiset Cc: "11.1 11.2 12.0" --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 9159e342193..bc94285120e 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp @@ -1985,6 +1985,10 @@ CodeEmitterNVC0::emitMOV(const Instruction *i) opc |= i->lanes << 5; emitForm_B(i, opc); + + // Explicitly emit the predicate source as emitForm_B skips it. + if (i->src(0).getFile() == FILE_PREDICATE) + srcId(i->src(0), 20); } else { uint32_t imm; -- 2.30.2