diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-03-13 17:41:16 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-03-13 17:41:16 +0100 |
commit | ec9f0f064e4c3567ae4a397e65cdd7f9300fb387 (patch) | |
tree | fa27153bc7c1446ccbc90b2c269195b099678297 /src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp | |
parent | Merge pull request #8007 from ameerj/vs-2022-errors (diff) | |
download | yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.tar yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.tar.gz yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.tar.bz2 yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.tar.lz yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.tar.xz yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.tar.zst yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.zip |
Diffstat (limited to 'src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp')
-rw-r--r-- | src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp b/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp index 38592afd0..ddf497e32 100644 --- a/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp +++ b/src/shader_recompiler/ir_opt/global_memory_to_storage_buffer_pass.cpp @@ -334,7 +334,8 @@ std::optional<LowAddrInfo> TrackLowAddress(IR::Inst* inst) { /// Tries to track the storage buffer address used by a global memory instruction std::optional<StorageBufferAddr> Track(const IR::Value& value, const Bias* bias) { const auto pred{[bias](const IR::Inst* inst) -> std::optional<StorageBufferAddr> { - if (inst->GetOpcode() != IR::Opcode::GetCbufU32) { + if (inst->GetOpcode() != IR::Opcode::GetCbufU32 && + inst->GetOpcode() != IR::Opcode::GetCbufU32x2) { return std::nullopt; } const IR::Value index{inst->Arg(0)}; |