diff options
| author | 2022-03-13 17:41:16 +0100 | |
|---|---|---|
| committer | 2022-03-13 17:41:16 +0100 | |
| commit | ec9f0f064e4c3567ae4a397e65cdd7f9300fb387 (patch) | |
| tree | fa27153bc7c1446ccbc90b2c269195b099678297 /src | |
| parent | Merge pull request #8007 from ameerj/vs-2022-errors (diff) | |
| download | yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.tar.gz yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.tar.xz yuzu-ec9f0f064e4c3567ae4a397e65cdd7f9300fb387.zip | |
Shader decompiler: Fix storage tracking in deko3d.
Diffstat (limited to '')
| -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) { | |||
| 334 | /// Tries to track the storage buffer address used by a global memory instruction | 334 | /// Tries to track the storage buffer address used by a global memory instruction |
| 335 | std::optional<StorageBufferAddr> Track(const IR::Value& value, const Bias* bias) { | 335 | std::optional<StorageBufferAddr> Track(const IR::Value& value, const Bias* bias) { |
| 336 | const auto pred{[bias](const IR::Inst* inst) -> std::optional<StorageBufferAddr> { | 336 | const auto pred{[bias](const IR::Inst* inst) -> std::optional<StorageBufferAddr> { |
| 337 | if (inst->GetOpcode() != IR::Opcode::GetCbufU32) { | 337 | if (inst->GetOpcode() != IR::Opcode::GetCbufU32 && |
| 338 | inst->GetOpcode() != IR::Opcode::GetCbufU32x2) { | ||
| 338 | return std::nullopt; | 339 | return std::nullopt; |
| 339 | } | 340 | } |
| 340 | const IR::Value index{inst->Arg(0)}; | 341 | const IR::Value index{inst->Arg(0)}; |