summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-01-19 05:30:56 -0500
committerIlia Mirkin <[email protected]>2016-01-20 19:37:34 -0500
commitc0b66d96d77b646282f7e732c4c25761431336c3 (patch)
tree6add84a35f5756a24726c14c5355ad22309f95b8 /src/gallium/drivers/nouveau
parent73c9ca754487fa5f39122119e1588e13ffcf5f47 (diff)
gk110/ir: allow carry to be set/read by imad
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}