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-Tag: upstream/17.1.0~13097 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0b66d96d77b646282f7e732c4c25761431336c3;p=platform%2Fupstream%2Fmesa.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 adb61d5..17cb484 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); }