nv50/ir/gk110: set not modifier on first source of logic op
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 15 Mar 2014 14:22:22 +0000 (10:22 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 18 Mar 2014 09:56:55 +0000 (05:56 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index 07d7e1929fe15ae2cfa2dc7617c858980bac68c4..81134a212127656dff986759fb126a1f482eb9ff 100644 (file)
@@ -661,17 +661,16 @@ CodeEmitterGK110::emitNOT(const Instruction *i)
 void
 CodeEmitterGK110::emitLogicOp(const Instruction *i, uint8_t subOp)
 {
-   assert(!(i->src(0).mod & Modifier(NV50_IR_MOD_NOT))); // XXX: find me
-
    if (isLIMM(i->src(1), TYPE_S32)) {
       emitForm_L(i, 0x200, 0, i->src(1).mod);
       code[1] |= subOp << 24;
+      NOT_(3a, 0);
    } else {
       emitForm_21(i, 0x220, 0xc20);
       code[1] |= subOp << 12;
+      NOT_(2a, 0);
       NOT_(2b, 1);
    }
-   assert(!(code[0] & 0x1) || !(i->src(1).mod & Modifier(NV50_IR_MOD_NOT)));
 }
 
 void