diff options
author | Liam <byteslice@airmail.cc> | 2022-03-17 13:30:21 -0400 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-03-17 13:30:21 -0400 |
commit | e228a40db807c20a2484169bd0a1447a081ea1ce (patch) | |
tree | cd69df019ebf505189e5ee897ae042f9bc131119 /src/shader_recompiler/ir_opt | |
parent | 3ac522ba41d10a254bc24bcdce8b0b2535f2b358 (diff) |
shader_recompiler: Use functions for indirect const buffer accesses
Diffstat (limited to 'src/shader_recompiler/ir_opt')
-rw-r--r-- | src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp | 2 |
1 files changed, 2 insertions, 0 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 1a50dd382..b54894a9b 100644 --- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp +++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp @@ -30,6 +30,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; |