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
12 changed files with 85 additions and 94 deletions

View File

@@ -233,7 +233,8 @@ struct Info {
}
void AddBindings(Backend::Bindings& bnd) const {
const auto total_buffers = buffers.size() + (has_readconst ? 1 : 0);
const auto total_buffers =
buffers.size() + (has_readconst ? 1 : 0) + (has_emulated_shared_memory ? 1 : 0);
bnd.buffer += total_buffers;
bnd.unified += total_buffers + images.size() + samplers.size();
bnd.user_data += ud_mask.NumRegs();