early-access version 3836

This commit is contained in:
pineappleEA
2023-08-27 00:26:38 +02:00
parent 17bf9b7d23
commit d07529eada
5 changed files with 32 additions and 12 deletions

View File

@@ -1193,6 +1193,12 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
const VkImageAspectFlags aspect_mask = dst.AspectMask();
ASSERT(aspect_mask == src.AspectMask());
if (VideoCore::Surface::BytesPerBlock(src.info.format) !=
VideoCore::Surface::BytesPerBlock(dst.info.format)) {
ReinterpretImage(dst, src, copies);
return;
}
std::ranges::transform(copies, vk_copies.begin(), [aspect_mask](const auto& copy) {
return MakeImageCopy(copy, aspect_mask);
});