gk110/ir: fix double-wide vm address
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Dec 2015 20:59:03 +0000 (15:59 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 21 Jan 2016 00:37:34 +0000 (19:37 -0500)
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index 59041dfacab6ba74cd26e20be08d3e2e0f0d3d32..adb61d55501c0561c3c18ac192c5d46139582d26 100644 (file)
@@ -1613,6 +1613,10 @@ CodeEmitterGK110::emitSTORE(const Instruction *i)
 
    srcId(i->src(1), 2);
    srcId(i->src(0).getIndirect(0), 10);
+   if (i->src(0).getFile() == FILE_MEMORY_GLOBAL &&
+       i->src(0).isIndirect(0) &&
+       i->getIndirect(0, 0)->reg.size == 8)
+      code[1] |= 1 << 23;
 }
 
 void