summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2021-12-15 21:39:53 -0800
committerGravatar GitHub2021-12-15 21:39:53 -0800
commit7cf74abbf5fa5aca712dfaad0ed5e07a797dcbbb (patch)
tree47f32844e483e087409a4d5a1082acaea0f5c226
parentMerge pull request #7588 from Wunkolo/gibibibi-bytes (diff)
parentFix blit image/view not compatible (diff)
downloadyuzu-7cf74abbf5fa5aca712dfaad0ed5e07a797dcbbb.tar.gz
yuzu-7cf74abbf5fa5aca712dfaad0ed5e07a797dcbbb.tar.xz
yuzu-7cf74abbf5fa5aca712dfaad0ed5e07a797dcbbb.zip
Merge pull request #7551 from vonchenplus/fix_blit_image_view_mismatching
Fix blit image/view not compatible
Diffstat (limited to '')
-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 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(
1137 } while (has_deleted_images); 1137 } while (has_deleted_images);
1138 const ImageBase& src_image = slot_images[src_id]; 1138 const ImageBase& src_image = slot_images[src_id];
1139 const ImageBase& dst_image = slot_images[dst_id]; 1139 const ImageBase& dst_image = slot_images[dst_id];
1140 const bool native_bgr = runtime.HasNativeBgr();
1140 if (GetFormatType(dst_info.format) != GetFormatType(dst_image.info.format) || 1141 if (GetFormatType(dst_info.format) != GetFormatType(dst_image.info.format) ||
1141 GetFormatType(src_info.format) != GetFormatType(src_image.info.format)) { 1142 GetFormatType(src_info.format) != GetFormatType(src_image.info.format) ||
1143 !VideoCore::Surface::IsViewCompatible(dst_info.format, dst_image.info.format, false,
1144 native_bgr) ||
1145 !VideoCore::Surface::IsViewCompatible(src_info.format, src_image.info.format, false,
1146 native_bgr)) {
1142 // Make sure the images match the expected format. 1147 // Make sure the images match the expected format.
1143 do { 1148 do {
1144 has_deleted_images = false; 1149 has_deleted_images = false;