diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-19 03:17:02 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-19 03:17:02 +0100 |
commit | 2ec7fcecb7d1f0bc8f943a3f7cb4d2e215bc4e76 (patch) | |
tree | 2da420f9cf192bb7601e46748715d5a6a97052ef /src/video_core/renderer_vulkan/vk_texture_cache.cpp | |
parent | Merge pull request #7349 from ameerj/ogl-convert-image (diff) | |
download | yuzu-2ec7fcecb7d1f0bc8f943a3f7cb4d2e215bc4e76.tar yuzu-2ec7fcecb7d1f0bc8f943a3f7cb4d2e215bc4e76.tar.gz yuzu-2ec7fcecb7d1f0bc8f943a3f7cb4d2e215bc4e76.tar.bz2 yuzu-2ec7fcecb7d1f0bc8f943a3f7cb4d2e215bc4e76.tar.lz yuzu-2ec7fcecb7d1f0bc8f943a3f7cb4d2e215bc4e76.tar.xz yuzu-2ec7fcecb7d1f0bc8f943a3f7cb4d2e215bc4e76.tar.zst yuzu-2ec7fcecb7d1f0bc8f943a3f7cb4d2e215bc4e76.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_texture_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 407fd2a15..6dfd45f31 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -881,6 +881,12 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im return blit_image_helper.ConvertD16ToR16(dst, src_view, up_scale, down_shift); } break; + case PixelFormat::A8B8G8R8_UNORM: + case PixelFormat::B8G8R8A8_UNORM: + if (src_view.format == PixelFormat::S8_UINT_D24_UNORM) { + return blit_image_helper.ConvertD24S8ToABGR8(dst, src_view, up_scale, down_shift); + } + break; case PixelFormat::R32_FLOAT: if (src_view.format == PixelFormat::D32_FLOAT) { return blit_image_helper.ConvertD32ToR32(dst, src_view, up_scale, down_shift); @@ -891,6 +897,12 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im return blit_image_helper.ConvertR16ToD16(dst, src_view, up_scale, down_shift); } break; + case PixelFormat::S8_UINT_D24_UNORM: + if (src_view.format == PixelFormat::A8B8G8R8_UNORM || + src_view.format == PixelFormat::B8G8R8A8_UNORM) { + return blit_image_helper.ConvertABGR8ToD24S8(dst, src_view, up_scale, down_shift); + } + break; case PixelFormat::D32_FLOAT: if (src_view.format == PixelFormat::R32_FLOAT) { return blit_image_helper.ConvertR32ToD32(dst, src_view, up_scale, down_shift); |