mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
nv/codegen: Limit MemoryOpt to input/output/const
Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24984>
This commit is contained in:
parent
672246f0fa
commit
64e27b2af1
1 changed files with 7 additions and 2 deletions
|
|
@ -3221,14 +3221,19 @@ MemoryOpt::runOpt(BasicBlock *bb)
|
|||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
DataFile file = ldst->src(0).getFile();
|
||||
if (file != FILE_MEMORY_CONST &&
|
||||
file != FILE_SHADER_INPUT &&
|
||||
file != FILE_SHADER_OUTPUT)
|
||||
continue;
|
||||
|
||||
if (ldst->getPredicate()) // TODO: handle predicated ld/st
|
||||
continue;
|
||||
if (ldst->perPatch) // TODO: create separate per-patch lists
|
||||
continue;
|
||||
|
||||
if (isLoad) {
|
||||
DataFile file = ldst->src(0).getFile();
|
||||
|
||||
// if ld l[]/g[] look for previous store to eliminate the reload
|
||||
if (file == FILE_MEMORY_GLOBAL || file == FILE_MEMORY_LOCAL) {
|
||||
// TODO: shared memory ?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue