summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/ir_opt
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-25 07:35:30 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:36 +0200
commit11ba190462c7b69a47598b2d1572fac3bccc4adc (patch)
treee24682860686eba5710716579a583312c1db2652 /src/shader_recompiler/ir_opt
parentglsl: implement phi nodes (diff)
downloadyuzu-11ba190462c7b69a47598b2d1572fac3bccc4adc.tar
yuzu-11ba190462c7b69a47598b2d1572fac3bccc4adc.tar.gz
yuzu-11ba190462c7b69a47598b2d1572fac3bccc4adc.tar.bz2
yuzu-11ba190462c7b69a47598b2d1572fac3bccc4adc.tar.lz
yuzu-11ba190462c7b69a47598b2d1572fac3bccc4adc.tar.xz
yuzu-11ba190462c7b69a47598b2d1572fac3bccc4adc.tar.zst
yuzu-11ba190462c7b69a47598b2d1572fac3bccc4adc.zip
Diffstat (limited to 'src/shader_recompiler/ir_opt')
-rw-r--r--src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp9
1 files changed, 2 insertions, 7 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 884ade004..fb2031fc8 100644
--- a/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
+++ b/src/shader_recompiler/ir_opt/collect_shader_info_pass.cpp
@@ -687,7 +687,9 @@ void VisitUsages(Info& info, IR::Inst& inst) {
case IR::Opcode::LoadStorage32:
case IR::Opcode::WriteStorage32:
case IR::Opcode::StorageAtomicIAdd32:
+ case IR::Opcode::StorageAtomicSMin32:
case IR::Opcode::StorageAtomicUMin32:
+ case IR::Opcode::StorageAtomicSMax32:
case IR::Opcode::StorageAtomicUMax32:
case IR::Opcode::StorageAtomicAnd32:
case IR::Opcode::StorageAtomicOr32:
@@ -712,13 +714,6 @@ void VisitUsages(Info& info, IR::Inst& inst) {
case IR::Opcode::SharedAtomicExchange64:
info.uses_int64_bit_atomics = true;
break;
- case IR::Opcode::GlobalAtomicSMin32:
- case IR::Opcode::GlobalAtomicSMax32:
- case IR::Opcode::StorageAtomicSMin32:
- case IR::Opcode::StorageAtomicSMax32:
- info.used_storage_buffer_types |= IR::Type::U32;
- info.uses_s32_atomics = true;
- break;
case IR::Opcode::GlobalAtomicInc32:
case IR::Opcode::StorageAtomicInc32:
info.used_storage_buffer_types |= IR::Type::U32;