diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-06-26 00:59:33 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2023-06-26 00:59:33 +0200 |
commit | 405eae3734dd6bfb259df0afceecf4de1f1262ce (patch) | |
tree | 71ac68d08d33554809b31122b1aa2581ec45b267 /src/shader_recompiler | |
parent | emit_glasm: Fix lmem size computation (diff) | |
download | yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.tar yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.tar.gz yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.tar.bz2 yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.tar.lz yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.tar.xz yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.tar.zst yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.zip |
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r-- | src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp | 4 | ||||
-rw-r--r-- | src/shader_recompiler/shader_info.h | 1 |
2 files changed, 5 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 5a4195217..70292686f 100644 --- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp +++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp @@ -424,6 +424,10 @@ void VisitUsages(Info& info, IR::Inst& inst) { info.used_constant_buffer_types |= IR::Type::U32 | IR::Type::U32x2; info.used_storage_buffer_types |= IR::Type::U32 | IR::Type::U32x2 | IR::Type::U32x4; break; + case IR::Opcode::LoadLocal: + case IR::Opcode::WriteLocal: + info.uses_local_memory = true; + break; default: break; } diff --git a/src/shader_recompiler/shader_info.h b/src/shader_recompiler/shader_info.h index d308db942..b4b4afd37 100644 --- a/src/shader_recompiler/shader_info.h +++ b/src/shader_recompiler/shader_info.h @@ -172,6 +172,7 @@ struct Info { bool stores_indexed_attributes{}; bool stores_global_memory{}; + bool uses_local_memory{}; bool uses_fp16{}; bool uses_fp64{}; |