summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2023-06-26 00:59:33 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2023-06-26 00:59:33 +0200
commit405eae3734dd6bfb259df0afceecf4de1f1262ce (patch)
tree71ac68d08d33554809b31122b1aa2581ec45b267 /src/shader_recompiler
parentemit_glasm: Fix lmem size computation (diff)
downloadyuzu-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.cpp4
-rw-r--r--src/shader_recompiler/shader_info.h1
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{};