nv50/ir/gk110: fill in mov from predicate
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 11 Mar 2014 18:54:25 +0000 (14:54 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 18 Mar 2014 09:56:54 +0000 (05:56 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index 3aedda42801813c187f64a2bc66e05076dcd471e..cd39d0ef1ea27ad34c6b6d43f9b3d6b897af3968 100644 (file)
@@ -1472,7 +1472,11 @@ CodeEmitterGK110::emitMOV(const Instruction *i)
       setImmediate32(i, 0, Modifier(0));
    } else
    if (i->src(0).getFile() == FILE_PREDICATE) {
-      // TODO
+      code[0] = 0x00000002;
+      code[1] = 0x84401c07;
+      emitPredicate(i);
+      defId(i->def(0), 2);
+      srcId(i->src(0), 14);
    } else {
       emitForm_C(i, 0x24c, 2);
       code[1] |= i->lanes << 10;