nv50/ir: lower buffer to global
The idea is that buffers will be bound to the appropriate indices. That means that we can just rename them to global. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Acked-by: Pierre Moreau <dev@pmoreau.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9299>
This commit is contained in:
parent
ee28cae1ef
commit
2ff2d65799
|
@ -1299,7 +1299,8 @@ NV50LoweringPreSSA::handleLOAD(Instruction *i)
|
|||
|
||||
if (prog->getType() == Program::TYPE_COMPUTE) {
|
||||
if (sym->inFile(FILE_MEMORY_SHARED) ||
|
||||
sym->inFile(FILE_MEMORY_GLOBAL)) {
|
||||
sym->inFile(FILE_MEMORY_BUFFER) ||
|
||||
sym->inFile(FILE_MEMORY_GLOBAL)) {
|
||||
return handleLDST(i);
|
||||
}
|
||||
}
|
||||
|
@ -1349,6 +1350,11 @@ NV50LoweringPreSSA::handleLDST(Instruction *i)
|
|||
return true;
|
||||
}
|
||||
|
||||
// Buffers just map directly to the different global memory spaces
|
||||
if (sym->inFile(FILE_MEMORY_BUFFER)) {
|
||||
sym->reg.file = FILE_MEMORY_GLOBAL;
|
||||
}
|
||||
|
||||
if (sym->inFile(FILE_MEMORY_SHARED)) {
|
||||
|
||||
if (src.isIndirect(0)) {
|
||||
|
|
Loading…
Reference in New Issue