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 <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10164>
This commit is contained in:
Ilia Mirkin 2021-04-11 17:54:32 -04:00 committed by Marge Bot
parent 967757a208
commit c95d2a86d3
1 changed files with 1 additions and 0 deletions

View File

@ -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);