From dd7b84135c4e0f0b1ed48d49a718e58e302004af Mon Sep 17 00:00:00 2001 From: Locke Lin Date: Mon, 13 Jan 2025 17:09:58 -0700 Subject: [PATCH] Support VK_FORMAT_D24_UNORM_S8_UINT --- framework/decode/vulkan_replay_dump_resources_common.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/decode/vulkan_replay_dump_resources_common.cpp b/framework/decode/vulkan_replay_dump_resources_common.cpp index 2ba59b79b..d6cb90d27 100644 --- a/framework/decode/vulkan_replay_dump_resources_common.cpp +++ b/framework/decode/vulkan_replay_dump_resources_common.cpp @@ -76,6 +76,7 @@ static util::imagewriter::DataFormats VkFormatToImageWriterDataFormat(VkFormat f case VK_FORMAT_D32_SFLOAT_S8_UINT: return util::imagewriter::DataFormats::kFormat_D32_FLOAT; + case VK_FORMAT_D24_UNORM_S8_UINT: case VK_FORMAT_X8_D24_UNORM_PACK32: return util::imagewriter::DataFormats::kFormat_D24_UNORM; @@ -83,6 +84,8 @@ static util::imagewriter::DataFormats VkFormatToImageWriterDataFormat(VkFormat f return util::imagewriter::DataFormats::kFormat_D16_UNORM; default: + GFXRECON_LOG_ERROR("%s isn't supported in VkFormatToImageWriterDataFormat", + util::ToString(format).c_str()); return util::imagewriter::DataFormats::kFormat_UNSPECIFIED; } }