3
0
Fork 0
forked from suyu/suyu

Ignore wrong blit format

This commit is contained in:
yzct12345 2021-07-18 21:56:06 +00:00 committed by GitHub
parent 8b53209362
commit 9e7f41cec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -608,7 +608,10 @@ void TextureCacheRuntime::BlitImage(Framebuffer* dst_framebuffer, ImageView& dst
const VkImageAspectFlags aspect_mask = ImageAspectMask(src.format);
const bool is_dst_msaa = dst.Samples() != VK_SAMPLE_COUNT_1_BIT;
const bool is_src_msaa = src.Samples() != VK_SAMPLE_COUNT_1_BIT;
ASSERT(aspect_mask == ImageAspectMask(dst.format));
if (aspect_mask != ImageAspectMask(dst.format) {
UNIMPLEMENTED_MSG("Incompatible blit from format {} to {}", src.format, dst.format));
return;
}
if (aspect_mask == VK_IMAGE_ASPECT_COLOR_BIT && !is_src_msaa && !is_dst_msaa) {
blit_image_helper.BlitColor(dst_framebuffer, src, dst_region, src_region, filter,
operation);