From b258e34ee6ccc30ef50dfca337f82ed3a921fefd Mon Sep 17 00:00:00 2001 From: Andrea Pappacoda Date: Wed, 18 Jan 2023 09:19:47 +0100 Subject: [PATCH] New upstream version 0-1311+ds --- src/common/settings.cpp | 12 ++++++++++++ src/common/settings.h | 13 ++++++++----- .../host_shaders/full_screen_triangle.vert | 2 +- src/yuzu/configuration/configure_graphics.ui | 15 +++++++++++++++ 4 files changed, 36 insertions(+), 6 deletions(-) diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 1638b79..b1a2aa8 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -129,6 +129,10 @@ void UpdateRescalingInfo() { info.up_scale = 1; info.down_shift = 0; break; + case ResolutionSetup::Res3_2X: + info.up_scale = 3; + info.down_shift = 1; + break; case ResolutionSetup::Res2X: info.up_scale = 2; info.down_shift = 0; @@ -149,6 +153,14 @@ void UpdateRescalingInfo() { info.up_scale = 6; info.down_shift = 0; break; + case ResolutionSetup::Res7X: + info.up_scale = 7; + info.down_shift = 0; + break; + case ResolutionSetup::Res8X: + info.up_scale = 8; + info.down_shift = 0; + break; default: ASSERT(false); info.up_scale = 1; diff --git a/src/common/settings.h b/src/common/settings.h index a457e3f..80b2eea 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -56,11 +56,14 @@ enum class ResolutionSetup : u32 { Res1_2X = 0, Res3_4X = 1, Res1X = 2, - Res2X = 3, - Res3X = 4, - Res4X = 5, - Res5X = 6, - Res6X = 7, + Res3_2X = 3, + Res2X = 4, + Res3X = 5, + Res4X = 6, + Res5X = 7, + Res6X = 8, + Res7X = 9, + Res8X = 10, }; enum class ScalingFilter : u32 { diff --git a/src/video_core/host_shaders/full_screen_triangle.vert b/src/video_core/host_shaders/full_screen_triangle.vert index 8ac936e..d16d989 100644 --- a/src/video_core/host_shaders/full_screen_triangle.vert +++ b/src/video_core/host_shaders/full_screen_triangle.vert @@ -32,4 +32,4 @@ void main() { float y = float((VERTEX_ID & 2) << 1); gl_Position = vec4(x - 1.0, FLIPY * (y - 1.0), 0.0, 1.0); texcoord = fma(vec2(x, y) / 2.0, tex_scale, tex_offset); -} \ No newline at end of file +} diff --git a/src/yuzu/configuration/configure_graphics.ui b/src/yuzu/configuration/configure_graphics.ui index aa02cc6..bb9910a 100644 --- a/src/yuzu/configuration/configure_graphics.ui +++ b/src/yuzu/configuration/configure_graphics.ui @@ -364,6 +364,11 @@ 1X (720p/1080p) + + + 1.5X (1080p/1620p) [EXPERIMENTAL] + + 2X (1440p/2160p) @@ -389,6 +394,16 @@ 6X (4320p/6480p) + + + 7X (5040p/7560p) + + + + + 8X (5760p/8640p) + +