From: Ilia Mirkin Date: Tue, 19 Jan 2016 10:30:56 +0000 (-0500) Subject: gk110/ir: allow carry to be set/read by imad X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0b66d96d77b646282f7e732c4c25761431336c3;p=mesa.git gk110/ir: allow carry to be set/read by imad Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp index adb61d55501..17cb484d2ba 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp @@ -700,6 +700,10 @@ CodeEmitterGK110::emitIMAD(const Instruction *i) if (i->subOp == NV50_IR_SUBOP_MUL_HIGH) code[1] |= 1 << 25; + + if (i->flagsDef >= 0) code[1] |= 1 << 18; + if (i->flagsSrc >= 0) code[1] |= 1 << 20; + SAT_(35); }