shader_recompiler: Lower non-compute shared memory into spare VGPRs. (#2403)

This commit is contained in:
squidbus 2025-02-12 20:10:13 -08:00 committed by GitHub
parent ebe2aadb4c
commit 6e12642151
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 85 additions and 94 deletions

View file

@ -813,6 +813,8 @@ void EmitContext::DefineSharedMemory() {
if (!info.uses_shared) {
return;
}
ASSERT(info.stage == Stage::Compute);
const u32 max_shared_memory_size = profile.max_shared_memory_size;
u32 shared_memory_size = runtime_info.cs_info.shared_memory_size;
if (shared_memory_size == 0) {