[vk_texture_cashe] improve MSAA copy fallback when specialized pass unavailable

This commit is contained in:
PavelBARABANOV 2025-12-07 07:19:12 +03:00 committed by crueter
parent ecd01e13fd
commit 6a6886f9f5
1 changed files with 5 additions and 3 deletions

View File

@ -1547,11 +1547,13 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
void TextureCacheRuntime::CopyImageMSAA(Image& dst, Image& src,
std::span<const VideoCommon::ImageCopy> copies) {
const bool msaa_to_non_msaa = src.info.num_samples > 1 && dst.info.num_samples == 1;
if (msaa_copy_pass) {
return msaa_copy_pass->CopyImage(dst, src, copies, msaa_to_non_msaa);
msaa_copy_pass->CopyImage(dst, src, copies,
src.info.num_samples > 1 && dst.info.num_samples == 1);
return;
}
UNIMPLEMENTED_MSG("Copying images with different samples is not supported.");
CopyImage(dst, src, copies);
}
u64 TextureCacheRuntime::GetDeviceLocalMemory() const {