gk110/ir: allow carry to be set/read by imad
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 19 Jan 2016 10:30:56 +0000 (05:30 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 21 Jan 2016 00:37:34 +0000 (19:37 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index adb61d55501c0561c3c18ac192c5d46139582d26..17cb484d2baaed25d954c223d477f8cd43773a55 100644 (file)
@@ -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);
 }