From 606eba253261c71e359739880474bcacd8d48397 Mon Sep 17 00:00:00 2001 From: yuzubot Date: Mon, 14 Mar 2022 12:02:34 +0000 Subject: [PATCH] "Merge Tagged PR 8015" --- src/shader_recompiler/frontend/maxwell/translate_program.cpp | 4 ++-- .../ir_opt/global_memory_to_storage_buffer_pass.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp index 248ad3ced..b22725584 100644 --- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp @@ -212,11 +212,11 @@ IR::Program TranslateProgram(ObjectPool& inst_pool, ObjectPool TrackLowAddress(IR::Inst* inst) { /// Tries to track the storage buffer address used by a global memory instruction std::optional Track(const IR::Value& value, const Bias* bias) { const auto pred{[bias](const IR::Inst* inst) -> std::optional { - 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)};