gk110/ir: emit load constant subop
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 15 Jul 2014 00:20:03 +0000 (20:20 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Jul 2014 12:26:41 +0000 (08:26 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index 75b3da2697f52a43ccf65b63215b504c41ae40f9..23a6ac7528daf8603e72bee7b16e7029e7195b97 100644 (file)
@@ -1478,6 +1478,7 @@ CodeEmitterGK110::emitLOAD(const Instruction *i)
       offset &= 0xffff;
       code[0] = 0x00000002;
       code[1] = 0x7c800000 | (i->src(0).get()->reg.fileIndex << 7);
+      code[1] |= i->subOp << 15;
       break;
    default:
       assert(!"invalid memory file");