Should fix SGE/SSG instructions, which were previously getting integer
0/-1 values.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 3 +++
 1 file changed, 3 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 5992c54..b8d0d3e 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -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
On Wed, May 7, 2014 at 9:57 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:> Should fix SGE/SSG instructions, which were previously getting integer > 0/-1 values.I hit the same issue on Maxwell. Soo...> > Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>Reviewed-by: Ben Skeggs <bskeggs at redhat.com>> --- > src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 3 +++ > 1 file changed, 3 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 5992c54..b8d0d3e 100644 > --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp > +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp > @@ -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 > Nouveau at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/nouveau
Apparently Analagous Threads
- [PATCH 1/3] gk110/ir: emit texbar the same way that the blob does
 - [PATCH 1/4] nvc0/ir: avoid jumping to a sched instruction
 - [PATCH] nv50/ir/gk110: fix some instruction emission
 - [PATCH mesa 3/6] nouveau: codegen: gk110: Make emitSTORE offset handling identical to emitLOAD
 - [PATCH] nv50/ir/gk110: fix some instruction emission