mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-19 23:05:38 +00:00
GPU: Fix edge bleeding with Bilinear Integer scaling
This commit is contained in:
parent
a3acb0c5db
commit
7b99fcbbf3
|
@ -1766,6 +1766,7 @@ bool GPU::CompileDisplayPipelines(bool display, bool deinterlace, bool chroma_sm
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DisplayScalingMode::BilinearSmooth:
|
case DisplayScalingMode::BilinearSmooth:
|
||||||
|
case DisplayScalingMode::BilinearInteger:
|
||||||
fs = shadergen.GenerateDisplayFragmentShader(true);
|
fs = shadergen.GenerateDisplayFragmentShader(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -2024,7 +2025,7 @@ bool GPU::RenderDisplay(GPUTexture* target, const GSVector4i draw_rect, bool pos
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DisplayScalingMode::BilinearSmooth:
|
case DisplayScalingMode::BilinearSmooth:
|
||||||
case DisplayScalingMode::BlinearInteger:
|
case DisplayScalingMode::BilinearInteger:
|
||||||
texture_filter_linear = true;
|
texture_filter_linear = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -2343,7 +2344,7 @@ GSVector4i GPU::CalculateDrawRect(s32 window_width, s32 window_height, bool appl
|
||||||
bool apply_aspect_ratio) const
|
bool apply_aspect_ratio) const
|
||||||
{
|
{
|
||||||
const bool integer_scale = (g_settings.display_scaling == DisplayScalingMode::NearestInteger ||
|
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 bool show_vram = g_settings.debugging.show_vram;
|
||||||
const float display_aspect_ratio = ComputeDisplayAspectRatio();
|
const float display_aspect_ratio = ComputeDisplayAspectRatio();
|
||||||
const float window_ratio = static_cast<float>(window_width) / static_cast<float>(window_height);
|
const float window_ratio = static_cast<float>(window_width) / static_cast<float>(window_height);
|
||||||
|
|
|
@ -167,7 +167,7 @@ enum class DisplayScalingMode : u8
|
||||||
NearestInteger,
|
NearestInteger,
|
||||||
BilinearSmooth,
|
BilinearSmooth,
|
||||||
BilinearSharp,
|
BilinearSharp,
|
||||||
BlinearInteger,
|
BilinearInteger,
|
||||||
Count
|
Count
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue