diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-12-05 21:54:58 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-12-05 21:54:58 +0100 |
commit | 228a381aedf00d6dc36134a8ca5da6413928d7ef (patch) | |
tree | c34fd7cc214632be4ea36441b3314b2f3aa8b691 /src/video_core/renderer_vulkan/vk_texture_cache.cpp | |
parent | renderer_opengl: Minor refactoring of filter selection (diff) | |
download | yuzu-228a381aedf00d6dc36134a8ca5da6413928d7ef.tar yuzu-228a381aedf00d6dc36134a8ca5da6413928d7ef.tar.gz yuzu-228a381aedf00d6dc36134a8ca5da6413928d7ef.tar.bz2 yuzu-228a381aedf00d6dc36134a8ca5da6413928d7ef.tar.lz yuzu-228a381aedf00d6dc36134a8ca5da6413928d7ef.tar.xz yuzu-228a381aedf00d6dc36134a8ca5da6413928d7ef.tar.zst yuzu-228a381aedf00d6dc36134a8ca5da6413928d7ef.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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index dd7daa3a5..1941170cb 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -1080,7 +1080,11 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im } break; case PixelFormat::S8_UINT_D24_UNORM: - return blit_image_helper.ConvertABGR8ToD24S8(dst, src_view); + if (src_view.format == PixelFormat::A8B8G8R8_UNORM || + src_view.format == PixelFormat::B8G8R8A8_UNORM) { + return blit_image_helper.ConvertABGR8ToD24S8(dst, src_view); + } + break; case PixelFormat::D32_FLOAT: if (src_view.format == PixelFormat::R32_FLOAT) { return blit_image_helper.ConvertR32ToD32(dst, src_view); |