summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-03-17 18:30:21 +0100
committerLiam <byteslice@airmail.cc>2022-03-17 18:30:21 +0100
commite228a40db807c20a2484169bd0a1447a081ea1ce (patch)
treecd69df019ebf505189e5ee897ae042f9bc131119 /src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
parentAddress review comments (diff)
downloadyuzu-e228a40db807c20a2484169bd0a1447a081ea1ce.tar
yuzu-e228a40db807c20a2484169bd0a1447a081ea1ce.tar.gz
yuzu-e228a40db807c20a2484169bd0a1447a081ea1ce.tar.bz2
yuzu-e228a40db807c20a2484169bd0a1447a081ea1ce.tar.lz
yuzu-e228a40db807c20a2484169bd0a1447a081ea1ce.tar.xz
yuzu-e228a40db807c20a2484169bd0a1447a081ea1ce.tar.zst
yuzu-e228a40db807c20a2484169bd0a1447a081ea1ce.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp2
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;