Mesa (master): gk110/ir: allow carry to be set/read by imad

Ilia Mirkin imirkin at kemper.freedesktop.org
Thu Jan 21 00:49:11 UTC 2016


Module: Mesa
Branch: master
Commit: c0b66d96d77b646282f7e732c4c25761431336c3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0b66d96d77b646282f7e732c4c25761431336c3

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Tue Jan 19 05:30:56 2016 -0500

gk110/ir: allow carry to be set/read by imad

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 4 ++++
 1 file changed, 4 insertions(+)

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);
 }
 




More information about the mesa-commit mailing list