Browse Source

[texture_cache] fix copy image again? (#2558)

Somehow I accidentally overwrote it with #2550

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2558
Co-authored-by: Maufeat <sahyno1996@gmail.com>
Co-committed-by: Maufeat <sahyno1996@gmail.com>
pull/2559/head
Maufeat 3 months ago
committed by crueter
parent
commit
49ddf95c70
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 3
      src/video_core/renderer_vulkan/vk_texture_cache.cpp

3
src/video_core/renderer_vulkan/vk_texture_cache.cpp

@ -1377,6 +1377,9 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
// As per the size-compatible formats section of vulkan, copy manually via ReinterpretImage
// these images that aren't size-compatible
if (BytesPerBlock(src.info.format) != BytesPerBlock(dst.info.format)) {
if (src.info.type == ImageType::Linear || dst.info.type == ImageType::Linear) {
return;
}
auto oneCopy = VideoCommon::ImageCopy{
.src_offset = VideoCommon::Offset3D(0, 0, 0),
.dst_offset = VideoCommon::Offset3D(0, 0, 0),

Loading…
Cancel
Save