Skip to contentSkip to conversation

nv50/ir/gk110: fix set with f32 dest

PATCH In review Ilia Mirkin 2 participants 2 messages May 6, 2014 – May 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nv50/ir/gk110: fix set with f32 dest

Should fix SGE/SSG instructions, which were previously getting integer 0/-1 values.

---
 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 3 +++
 1 file changed, 3 insertions(+)
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp +3 -0
index 5992c54..b8d0d3e 100644
@@ -915,6 +915,9 @@ CodeEmitterGK110::emitSET(const CmpInstruction *i)
          modNegAbsF32_3b(i, 1);
       }
       FTZ_(3a);
+
+      if (i->dType == TYPE_F32)
+         code[1] |= 1 << 23;
    }
    if (i->sType == TYPE_S32)
       code[1] |= 1 << 19;
Signature · 1 line
1.8.3.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Ilia Mirkin

Should fix SGE/SSG instructions, which were previously getting integer 0/-1 values.

I hit the same issue on Maxwell. Soo...

Quoted 2 lines
Quoted 25 lines
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 3 +++
 1 file changed, 3 insertions(+)
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp +3 -1
index 5992c54..b8d0d3e 100644
@@ -915,6 +915,9 @@ CodeEmitterGK110::emitSET(const CmpInstruction *i)
          modNegAbsF32_3b(i, 1);
       }
       FTZ_(3a);
+
+      if (i->dType == TYPE_F32)
+         code[1] |= 1 << 23;
    }
    if (i->sType == TYPE_S32)
       code[1] |= 1 << 19;
--

1.8.3.2

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau