From 2e533ab74be1f997ddfaaf01798e7e3018138ac2 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 28 Dec 2015 15:59:03 -0500 Subject: [PATCH] gk110/ir: fix double-wide vm address --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp index 59041dfacab..adb61d55501 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp @@ -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 -- 2.30.2