summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-09-20 19:11:03 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:30 +0100
commit19ca0c9ab5cbaa86e30743ea760e0aab5c40c1d6 (patch)
treefc7ba8c9aea27d45087700e9f8f779d3d8587b10 /src/video_core/renderer_vulkan
parentrescaling_pass: Logic simplification and minor style cleanup (diff)
downloadyuzu-19ca0c9ab5cbaa86e30743ea760e0aab5c40c1d6.tar
yuzu-19ca0c9ab5cbaa86e30743ea760e0aab5c40c1d6.tar.gz
yuzu-19ca0c9ab5cbaa86e30743ea760e0aab5c40c1d6.tar.bz2
yuzu-19ca0c9ab5cbaa86e30743ea760e0aab5c40c1d6.tar.lz
yuzu-19ca0c9ab5cbaa86e30743ea760e0aab5c40c1d6.tar.xz
yuzu-19ca0c9ab5cbaa86e30743ea760e0aab5c40c1d6.tar.zst
yuzu-19ca0c9ab5cbaa86e30743ea760e0aab5c40c1d6.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 87f265e09..1ceffa718 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -207,7 +207,7 @@ void RasterizerVulkan::Clear() {
query_cache.UpdateCounters();
- const auto& regs = maxwell3d.regs;
+ auto& regs = maxwell3d.regs;
const bool use_color = regs.clear_buffers.R || regs.clear_buffers.G || regs.clear_buffers.B ||
regs.clear_buffers.A;
const bool use_depth = regs.clear_buffers.Z;
@@ -228,6 +228,7 @@ void RasterizerVulkan::Clear() {
up_scale = Settings::values.resolution_info.up_scale;
down_shift = Settings::values.resolution_info.down_shift;
}
+ UpdateViewportsState(regs);
VkClearRect clear_rect{
.rect = GetScissorState(regs, 0, up_scale, down_shift),