diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-05-04 02:34:49 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-05-07 23:46:12 +0200 |
commit | 92da86290c5ea657ae918bfe36071bdf7ac15075 (patch) | |
tree | 54579c5be80dde28aabe68cd2467281036ef807a /src/video_core/texture_cache/image_view_base.cpp | |
parent | Texture cache: sync the first flush. (diff) | |
download | yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.gz yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.bz2 yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.lz yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.xz yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.zst yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/image_view_base.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/image_view_base.cpp b/src/video_core/texture_cache/image_view_base.cpp index 8f28342d5..30a7c11f5 100644 --- a/src/video_core/texture_cache/image_view_base.cpp +++ b/src/video_core/texture_cache/image_view_base.cpp @@ -26,7 +26,8 @@ ImageViewBase::ImageViewBase(const ImageViewInfo& info, const ImageInfo& image_i ASSERT_MSG(VideoCore::Surface::IsViewCompatible(image_info.format, info.format, false, true), "Image view format {} is incompatible with image format {}", info.format, image_info.format); - if (image_info.forced_flushed) { + const bool preemptive = !Settings::values.use_reactive_flushing.GetValue() && image_info.type == ImageType::Linear; + if (image_info.forced_flushed || preemptive) { flags |= ImageViewFlagBits::PreemtiveDownload; } if (image_info.type == ImageType::e3D && info.type != ImageViewType::e3D) { |