From 1b54224d0716b14645ba33bfeeaffa42bf052dbe Mon Sep 17 00:00:00 2001 From: JPikachu Date: Sat, 9 May 2026 23:32:07 +0100 Subject: [PATCH] Revert "only LM3 and revert android exclude" This reverts commit 2a105c2869da82ff81f1a3f5e8ca0be391e5ea7e. --- src/core/game_settings.h | 3 +-- src/shader_recompiler/ir_opt/rescaling_pass.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/core/game_settings.h b/src/core/game_settings.h index 4a1fb9c8d7..327a1a4e2c 100644 --- a/src/core/game_settings.h +++ b/src/core/game_settings.h @@ -44,8 +44,7 @@ enum class GPUVendor { }; enum class TitleID : std::uint64_t { - NinjaGaidenRagebound = 0x0100781020710000ULL, - LuigisMansion3 = 0x0100DCA0064A6000ULL + NinjaGaidenRagebound = 0x0100781020710000ULL }; struct EnvironmentInfo { diff --git a/src/shader_recompiler/ir_opt/rescaling_pass.cpp b/src/shader_recompiler/ir_opt/rescaling_pass.cpp index 8b78cce9f1..af241f17ca 100644 --- a/src/shader_recompiler/ir_opt/rescaling_pass.cpp +++ b/src/shader_recompiler/ir_opt/rescaling_pass.cpp @@ -5,7 +5,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include "common/settings.h" -#include "core/game_settings.h" #include "shader_recompiler/environment.h" #include "shader_recompiler/frontend/ir/ir_emitter.h" #include "shader_recompiler/frontend/ir/modifiers.h" @@ -345,10 +344,10 @@ void Visit(const IR::Program& program, IR::Block& block, IR::Inst& inst) { } // Anonymous namespace bool FragmentShaderNeedsRescalingPass(const IR::Program& program) { - // Only apply for Luigi's Mansion 3 - if (Settings::values.program_id != static_cast(Core::GameSettings::TitleID::LuigisMansion3)) { - return false; - } +#ifdef __ANDROID__ + // Disable this workaround on Android to preserve performance + return false; +#endif if (program.stage != Stage::Fragment) return false;