diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-20 06:15:29 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-20 06:15:29 +0100 |
commit | 0857f82913d0bcf2de4721233f74cd40ecddcdae (patch) | |
tree | cda81a8683f155985fa57d48f4ed72f44228061e /src/video_core/texture_cache/texture_cache.h | |
parent | TextureCache: Add R16G16 to D24S8 converter. (diff) | |
download | yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.gz yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.bz2 yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.lz yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.xz yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.tar.zst yuzu-0857f82913d0bcf2de4721233f74cd40ecddcdae.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 4188f93c5..44a0d42ba 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -1762,8 +1762,8 @@ void TextureCache<P>::CopyImage(ImageId dst_id, ImageId src_id, std::vector<Imag } UNIMPLEMENTED_IF(dst.info.type != ImageType::e2D); UNIMPLEMENTED_IF(src.info.type != ImageType::e2D); - if constexpr (HAS_PIXEL_FORMAT_CONVERSIONS) { - return runtime.ConvertImage(dst, src, copies); + if (runtime.ShouldReinterpret(dst, src)) { + return runtime.ReinterpretImage(dst, src, copies); } for (const ImageCopy& copy : copies) { UNIMPLEMENTED_IF(copy.dst_subresource.num_layers != 1); |