diff options
| author | 2023-06-25 18:59:33 -0400 | |
|---|---|---|
| committer | 2023-06-25 18:59:33 -0400 | |
| commit | 405eae3734dd6bfb259df0afceecf4de1f1262ce (patch) | |
| tree | 71ac68d08d33554809b31122b1aa2581ec45b267 /src/shader_recompiler/ir_opt | |
| parent | emit_glasm: Fix lmem size computation (diff) | |
| download | yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.tar.gz yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.tar.xz yuzu-405eae3734dd6bfb259df0afceecf4de1f1262ce.zip | |
shaders: Track local memory usage
Diffstat (limited to 'src/shader_recompiler/ir_opt')
| -rw-r--r-- | src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp | 4 |
1 files changed, 4 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) { | |||
| 424 | info.used_constant_buffer_types |= IR::Type::U32 | IR::Type::U32x2; | 424 | info.used_constant_buffer_types |= IR::Type::U32 | IR::Type::U32x2; |
| 425 | info.used_storage_buffer_types |= IR::Type::U32 | IR::Type::U32x2 | IR::Type::U32x4; | 425 | info.used_storage_buffer_types |= IR::Type::U32 | IR::Type::U32x2 | IR::Type::U32x4; |
| 426 | break; | 426 | break; |
| 427 | case IR::Opcode::LoadLocal: | ||
| 428 | case IR::Opcode::WriteLocal: | ||
| 429 | info.uses_local_memory = true; | ||
| 430 | break; | ||
| 427 | default: | 431 | default: |
| 428 | break; | 432 | break; |
| 429 | } | 433 | } |