From: Ilia Mirkin Date: Mon, 30 May 2016 21:25:41 +0000 (-0400) Subject: nvc0/ir: fix spilling predicates to registers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b1a167a2bce936beabd03ffc313a63d8deeed09;p=mesa.git nvc0/ir: fix spilling predicates to registers Signed-off-by: Ilia Mirkin Reviewed-by: Samuel Pitoiset Cc: "11.1 11.2 12.0" --- 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;