gk110/ir: fix load from shared memory
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 20 Jan 2016 22:15:27 +0000 (17:15 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 20 Jan 2016 22:16:09 +0000 (17:16 -0500)
It was accidentally using the store opcode.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index d79f3060bebe7f76ce0d864dd4393aa3b9a59877..4248d6cb248fa7d147b74fdb7e4640ae0ae3cd9a 100644 (file)
@@ -1613,7 +1613,7 @@ CodeEmitterGK110::emitLOAD(const Instruction *i)
    switch (i->src(0).getFile()) {
    case FILE_MEMORY_GLOBAL: code[1] = 0xc0000000; code[0] = 0x00000000; break;
    case FILE_MEMORY_LOCAL:  code[1] = 0x7a000000; code[0] = 0x00000002; break;
-   case FILE_MEMORY_SHARED: code[1] = 0x7ac00000; code[0] = 0x00000002; break;
+   case FILE_MEMORY_SHARED: code[1] = 0x7a400000; code[0] = 0x00000002; break;
    case FILE_MEMORY_CONST:
       if (!i->src(0).isIndirect(0) && typeSizeof(i->dType) == 4) {
          emitMOV(i);