summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar Marshall Mohror2021-10-19 21:20:28 -0500
committerGravatar Fernando Sahmkow2021-11-16 22:11:31 +0100
commit7506ac4118c6065b2557fe3cb94bab52c099ca37 (patch)
tree60f97cc7385581986213ea2a2dc2bfcde8c12b07 /src/video_core
parentVideo Core: fix building for GCC. (diff)
downloadyuzu-7506ac4118c6065b2557fe3cb94bab52c099ca37.tar.gz
yuzu-7506ac4118c6065b2557fe3cb94bab52c099ca37.tar.xz
yuzu-7506ac4118c6065b2557fe3cb94bab52c099ca37.zip
Presentation: Fix turning FSR on and off in settings
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_blit_screen.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.cpp b/src/video_core/renderer_vulkan/vk_blit_screen.cpp
index 334eeb92e..ccf721008 100644
--- a/src/video_core/renderer_vulkan/vk_blit_screen.cpp
+++ b/src/video_core/renderer_vulkan/vk_blit_screen.cpp
@@ -362,6 +362,17 @@ void VKBlitScreen::CreateDynamicResources() {
362} 362}
363 363
364void VKBlitScreen::RefreshResources(const Tegra::FramebufferConfig& framebuffer) { 364void VKBlitScreen::RefreshResources(const Tegra::FramebufferConfig& framebuffer) {
365 if (Settings::values.scaling_filter.GetValue() == Settings::ScalingFilter::Fsr) {
366 if (!fsr) {
367 const auto& layout = render_window.GetFramebufferLayout();
368 fsr = std::make_unique<FSR>(
369 device, memory_allocator, image_count,
370 VkExtent2D{.width = layout.screen.GetWidth(), .height = layout.screen.GetHeight()});
371 }
372 } else {
373 fsr.reset();
374 }
375
365 if (framebuffer.width == raw_width && framebuffer.height == raw_height && !raw_images.empty()) { 376 if (framebuffer.width == raw_width && framebuffer.height == raw_height && !raw_images.empty()) {
366 return; 377 return;
367 } 378 }