aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache/texture_cache.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-15 21:39:53 -0800
committerGitHub <noreply@github.com>2021-12-15 21:39:53 -0800
commitdc3125296c1488f5cd307deaccfc13a0451646fc (patch)
tree47f32844e483e087409a4d5a1082acaea0f5c226 /src/video_core/texture_cache/texture_cache.h
parent3ded539d4f1da8e840efa6ffdeffbf1b0aacce94 (diff)
parent755963ada14264beff39b2d5091d9fcfbc4de231 (diff)
Merge pull request #7551 from vonchenplus/fix_blit_image_view_mismatching
Fix blit image/view not compatible
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r--src/video_core/texture_cache/texture_cache.h7
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 e195b1e984..5aaeb16ca6 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;