From c95d2a86d38bab02214dba3bdca0269f8ee4a3e0 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sun, 11 Apr 2021 17:54:32 -0400 Subject: [PATCH] nv50/ir: offset accesses to shared memory Ideally this should include the size of the inputs as well. This will be updated when we add support for kernels which take actual inputs. Signed-off-by: Ilia Mirkin Reviewed-by: Karol Herbst Reviewed-by: Pierre Moreau Part-of: --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp index ade9b2f..2b11793 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp @@ -1778,6 +1778,7 @@ Converter::makeSym(uint tgsiFile, int fileIdx, int idx, int c, uint32_t address) break; case TGSI_MEMORY_TYPE_SHARED: sym->setFile(FILE_MEMORY_SHARED); + address += info->prop.cp.inputOffset; break; case TGSI_MEMORY_TYPE_INPUT: assert(prog->getType() == Program::TYPE_COMPUTE); -- 2.7.4