diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-12-18 07:09:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-18 07:09:58 +0100 |
commit | 04b4f3b0510c2fe258bddf64552b60ead71d8db2 (patch) | |
tree | a93b6e36c1054fef1f67684d1cca09b090d30245 /src/video_core/texture_cache | |
parent | Merge pull request #7570 from ameerj/favorites-expanded (diff) | |
parent | vk_texture_cache: Add ABGR src format check for D24S8 conversions (diff) | |
download | yuzu-04b4f3b0510c2fe258bddf64552b60ead71d8db2.tar yuzu-04b4f3b0510c2fe258bddf64552b60ead71d8db2.tar.gz yuzu-04b4f3b0510c2fe258bddf64552b60ead71d8db2.tar.bz2 yuzu-04b4f3b0510c2fe258bddf64552b60ead71d8db2.tar.lz yuzu-04b4f3b0510c2fe258bddf64552b60ead71d8db2.tar.xz yuzu-04b4f3b0510c2fe258bddf64552b60ead71d8db2.tar.zst yuzu-04b4f3b0510c2fe258bddf64552b60ead71d8db2.zip |
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 5aaeb16ca..2e19fced2 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -1855,9 +1855,20 @@ void TextureCache<P>::CopyImage(ImageId dst_id, ImageId src_id, std::vector<Imag .height = std::min(dst_view.size.height, src_view.size.height), .depth = std::min(dst_view.size.depth, src_view.size.depth), }; - UNIMPLEMENTED_IF(copy.extent != expected_size); + const Extent3D scaled_extent = [is_rescaled, expected_size]() { + if (!is_rescaled) { + return expected_size; + } + const auto& resolution = Settings::values.resolution_info; + return Extent3D{ + .width = resolution.ScaleUp(expected_size.width), + .height = resolution.ScaleUp(expected_size.height), + .depth = expected_size.depth, + }; + }(); + UNIMPLEMENTED_IF(copy.extent != scaled_extent); - runtime.ConvertImage(dst_framebuffer, dst_view, src_view, is_rescaled); + runtime.ConvertImage(dst_framebuffer, dst_view, src_view); } } |