mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-02 00:33:16 +00:00
shader_recompiler: Lower non-compute shared memory into spare VGPRs. (#2403)
This commit is contained in:
parent
ebe2aadb4c
commit
6e12642151
12 changed files with 85 additions and 94 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue