From 82c3042c0f0a4e0c4fdefd64c2f2b5b3b2a31e3b Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 10 Mar 2022 19:44:25 -0500 Subject: [PATCH] TextureCacheRuntime: allow converting D24S8 to ABGR8 I can't see how this would be useful, but Galaxy uses it. --- src/video_core/renderer_vulkan/vk_texture_cache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 0f62779de5..ca6019a3a7 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -1067,7 +1067,8 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im } break; case PixelFormat::A8B8G8R8_UNORM: - if (src_view.format == PixelFormat::S8_UINT_D24_UNORM) { + if (src_view.format == PixelFormat::S8_UINT_D24_UNORM || + src_view.format == PixelFormat::D24_UNORM_S8_UINT) { return blit_image_helper.ConvertD24S8ToABGR8(dst, src_view); } break;