diff options
author | Feng Chen <vonchenplus@gmail.com> | 2021-12-10 05:03:34 +0100 |
---|---|---|
committer | Feng Chen <vonchenplus@gmail.com> | 2021-12-10 05:41:09 +0100 |
commit | 159842649392a2328de5f258ce742c4361f51f60 (patch) | |
tree | 60b562ed8045bdd3006981e8284af18bc639845e /src/video_core | |
parent | Merge pull request #7495 from FernandoS27/text-blit-fix-again (diff) | |
download | yuzu-159842649392a2328de5f258ce742c4361f51f60.tar yuzu-159842649392a2328de5f258ce742c4361f51f60.tar.gz yuzu-159842649392a2328de5f258ce742c4361f51f60.tar.bz2 yuzu-159842649392a2328de5f258ce742c4361f51f60.tar.lz yuzu-159842649392a2328de5f258ce742c4361f51f60.tar.xz yuzu-159842649392a2328de5f258ce742c4361f51f60.tar.zst yuzu-159842649392a2328de5f258ce742c4361f51f60.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index e195b1e98..5aaeb16ca 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -1137,8 +1137,13 @@ typename TextureCache<P>::BlitImages TextureCache<P>::GetBlitImages( } while (has_deleted_images); const ImageBase& src_image = slot_images[src_id]; const ImageBase& dst_image = slot_images[dst_id]; + const bool native_bgr = runtime.HasNativeBgr(); if (GetFormatType(dst_info.format) != GetFormatType(dst_image.info.format) || - GetFormatType(src_info.format) != GetFormatType(src_image.info.format)) { + GetFormatType(src_info.format) != GetFormatType(src_image.info.format) || + !VideoCore::Surface::IsViewCompatible(dst_info.format, dst_image.info.format, false, + native_bgr) || + !VideoCore::Surface::IsViewCompatible(src_info.format, src_image.info.format, false, + native_bgr)) { // Make sure the images match the expected format. do { has_deleted_images = false; |