gm107/ir: fix F2F flipped stype/dtype flags
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 26 Sep 2014 06:38:53 +0000 (02:38 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Feb 2015 00:30:27 +0000 (19:30 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp

index 73a65fadf913f277cc259d5efc7d16664a0f24f1..3e1da7ec084d94c9d0ff597cd389650d802f5356 100644 (file)
@@ -731,8 +731,8 @@ CodeEmitterGM107::emitF2F()
    emitField(0x2d, 1, (insn->op == OP_NEG) || insn->src(0).mod.neg());
    emitFMZ  (0x2c, 1);
    emitRND  (0x27, rnd, 0x2a);
-   emitField(0x0a, 2, util_logbase2(typeSizeof(insn->dType)));
-   emitField(0x08, 2, util_logbase2(typeSizeof(insn->sType)));
+   emitField(0x0a, 2, util_logbase2(typeSizeof(insn->sType)));
+   emitField(0x08, 2, util_logbase2(typeSizeof(insn->dType)));
    emitGPR  (0x00, insn->def(0));
 }