From e7c5d3ba86d9f6034172fb876bbc00e59678fb82 Mon Sep 17 00:00:00 2001 From: Xphalnos <164882787+Xphalnos@users.noreply.github.com> Date: Tue, 31 Dec 2024 18:54:18 +0100 Subject: [PATCH] Fix PromoteFormatToDepth --- src/video_core/renderer_vulkan/liverpool_to_vk.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video_core/renderer_vulkan/liverpool_to_vk.h b/src/video_core/renderer_vulkan/liverpool_to_vk.h index a68280e7d..ab7ec843a 100644 --- a/src/video_core/renderer_vulkan/liverpool_to_vk.h +++ b/src/video_core/renderer_vulkan/liverpool_to_vk.h @@ -76,6 +76,8 @@ static inline vk::Format PromoteFormatToDepth(vk::Format fmt) { return vk::Format::eD32Sfloat; } else if (fmt == vk::Format::eR16Unorm) { return vk::Format::eD16Unorm; + } else if (fmt == vk::Format::eR8G8B8A8Unorm) { + return vk::Format::eR32Uint; } UNREACHABLE(); }