diff options
author | Liam <byteslice@airmail.cc> | 2022-04-01 17:17:54 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-04-01 17:17:54 +0200 |
commit | a45baa0e786148f41394fc819108649d8eb6ba3a (patch) | |
tree | f8ac1c5f1ebd2a02662c65affe96deb504d666ea /src/shader_recompiler/ir_opt | |
parent | Merge pull request #8107 from german77/fullscreen (diff) | |
download | yuzu-a45baa0e786148f41394fc819108649d8eb6ba3a.tar yuzu-a45baa0e786148f41394fc819108649d8eb6ba3a.tar.gz yuzu-a45baa0e786148f41394fc819108649d8eb6ba3a.tar.bz2 yuzu-a45baa0e786148f41394fc819108649d8eb6ba3a.tar.lz yuzu-a45baa0e786148f41394fc819108649d8eb6ba3a.tar.xz yuzu-a45baa0e786148f41394fc819108649d8eb6ba3a.tar.zst yuzu-a45baa0e786148f41394fc819108649d8eb6ba3a.zip |
Diffstat (limited to 'src/shader_recompiler/ir_opt')
-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; |