summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-16 03:34:07 +0200
committerGitHub <noreply@github.com>2020-05-16 03:34:07 +0200
commit55c0dd1cb38b998476ddca8e150cb86133d013d8 (patch)
treee126b768de79d2960bc39f0803378d1ac048fb43 /src/video_core
parentfrontend: Set minimum window size to 640x360 instead of 1280x720 (#3413) (diff)
parentvk_rasterizer: Match OpenGL's FlushAndInvalidate behavior (diff)
downloadyuzu-55c0dd1cb38b998476ddca8e150cb86133d013d8.tar
yuzu-55c0dd1cb38b998476ddca8e150cb86133d013d8.tar.gz
yuzu-55c0dd1cb38b998476ddca8e150cb86133d013d8.tar.bz2
yuzu-55c0dd1cb38b998476ddca8e150cb86133d013d8.tar.lz
yuzu-55c0dd1cb38b998476ddca8e150cb86133d013d8.tar.xz
yuzu-55c0dd1cb38b998476ddca8e150cb86133d013d8.tar.zst
yuzu-55c0dd1cb38b998476ddca8e150cb86133d013d8.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 8b009fc22..17a2efe8e 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -569,7 +569,9 @@ void RasterizerVulkan::ReleaseFences() {
}
void RasterizerVulkan::FlushAndInvalidateRegion(VAddr addr, u64 size) {
- FlushRegion(addr, size);
+ if (Settings::IsGPULevelExtreme()) {
+ FlushRegion(addr, size);
+ }
InvalidateRegion(addr, size);
}