From 30e073b02bfd747a90807f3bb6e726fb335c0e2b Mon Sep 17 00:00:00 2001 From: MaranBr Date: Mon, 19 Jan 2026 20:57:48 +0100 Subject: [PATCH] [video_core] Fixes flickering and weird textures at native 1x resolution (#3346) The issue occurs because shaders generated without RescalingPass are too simple, triggering driver optimization bugs on some GPUs. Fixes rendering issues in Luigi's Mansion 3 and possibly other games as well. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3346 Reviewed-by: DraVee Co-authored-by: MaranBr Co-committed-by: MaranBr --- src/common/settings.cpp | 4 ++-- src/shader_recompiler/frontend/maxwell/translate_program.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/settings.cpp b/src/common/settings.cpp index d6b17b2f73..1e67cbbd6c 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project @@ -347,7 +347,7 @@ void TranslateResolutionInfo(ResolutionSetup setup, ResolutionScalingInfo& info) } info.up_factor = static_cast(info.up_scale) / (1U << info.down_shift); info.down_factor = static_cast(1U << info.down_shift) / info.up_scale; - info.active = info.up_scale != 1 || info.down_shift != 0; + info.active = true; } void UpdateRescalingInfo() { diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp index 97b9b0cf07..81aee6453a 100644 --- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project