diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-04-07 12:40:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 12:40:59 +0200 |
commit | 4d5900aaa1776b01ec666a14480018aa86e02e6f (patch) | |
tree | 6564d65d194725e528fb525dadad3300b58197fa /src/shader_recompiler/ir_opt | |
parent | Merge pull request #8164 from liamwhite/jit-stub (diff) | |
parent | shader_recompiler: Decrease indirect cbuf limit to match hardware (diff) | |
download | yuzu-4d5900aaa1776b01ec666a14480018aa86e02e6f.tar yuzu-4d5900aaa1776b01ec666a14480018aa86e02e6f.tar.gz yuzu-4d5900aaa1776b01ec666a14480018aa86e02e6f.tar.bz2 yuzu-4d5900aaa1776b01ec666a14480018aa86e02e6f.tar.lz yuzu-4d5900aaa1776b01ec666a14480018aa86e02e6f.tar.xz yuzu-4d5900aaa1776b01ec666a14480018aa86e02e6f.tar.zst yuzu-4d5900aaa1776b01ec666a14480018aa86e02e6f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp index 0b2c60842..16278faab 100644 --- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp +++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp @@ -32,13 +32,8 @@ void AddConstantBufferDescriptor(Info& info, u32 index, u32 count) { void AddRegisterIndexedLdc(Info& info) { info.uses_cbuf_indirect = true; - // The shader can use any possible constant buffer - info.constant_buffer_mask = (1 << Info::MAX_CBUFS) - 1; - - auto& cbufs{info.constant_buffer_descriptors}; - cbufs.clear(); - for (u32 i = 0; i < Info::MAX_CBUFS; i++) { - cbufs.push_back(ConstantBufferDescriptor{.index = i, .count = 1}); + for (u32 i = 0; i < Info::MAX_INDIRECT_CBUFS; i++) { + AddConstantBufferDescriptor(info, i, 1); // The shader can use any possible access size info.constant_buffer_used_sizes[i] = 0x10'000; |