From 7b99fcbbf3e55de52431be595b2a31931f602820 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 28 Jul 2024 14:08:03 +1000 Subject: [PATCH] GPU: Fix edge bleeding with Bilinear Integer scaling --- src/core/gpu.cpp | 5 +++-- src/core/types.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index f06736946..6822c268e 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -1766,6 +1766,7 @@ bool GPU::CompileDisplayPipelines(bool display, bool deinterlace, bool chroma_sm break; case DisplayScalingMode::BilinearSmooth: + case DisplayScalingMode::BilinearInteger: fs = shadergen.GenerateDisplayFragmentShader(true); break; @@ -2024,7 +2025,7 @@ bool GPU::RenderDisplay(GPUTexture* target, const GSVector4i draw_rect, bool pos break; case DisplayScalingMode::BilinearSmooth: - case DisplayScalingMode::BlinearInteger: + case DisplayScalingMode::BilinearInteger: texture_filter_linear = true; break; @@ -2343,7 +2344,7 @@ GSVector4i GPU::CalculateDrawRect(s32 window_width, s32 window_height, bool appl bool apply_aspect_ratio) const { const bool integer_scale = (g_settings.display_scaling == DisplayScalingMode::NearestInteger || - g_settings.display_scaling == DisplayScalingMode::BlinearInteger); + g_settings.display_scaling == DisplayScalingMode::BilinearInteger); const bool show_vram = g_settings.debugging.show_vram; const float display_aspect_ratio = ComputeDisplayAspectRatio(); const float window_ratio = static_cast(window_width) / static_cast(window_height); diff --git a/src/core/types.h b/src/core/types.h index cba718e3a..ac679e744 100644 --- a/src/core/types.h +++ b/src/core/types.h @@ -167,7 +167,7 @@ enum class DisplayScalingMode : u8 NearestInteger, BilinearSmooth, BilinearSharp, - BlinearInteger, + BilinearInteger, Count };