From a17fe5c8b992bf2958b7697d94738cdd504db05d Mon Sep 17 00:00:00 2001 From: Dave Houlton Date: Fri, 28 Apr 2017 14:03:39 -0600 Subject: layers: Change size of D32_SFLOAT_S8_UINT Change the size of the other format with 'optional' bytes, to be consistent with the X8_D24_UNORM_PACK32 change. We'll now assume the optional bytes when calculating buffer/image sizes for these formats. Change-Id: I7c194b85611795cc680f76de04513c3b45a88c4b --- layers/vk_format_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/vk_format_utils.cpp') diff --git a/layers/vk_format_utils.cpp b/layers/vk_format_utils.cpp index c02a01f5..7d9c084b 100644 --- a/layers/vk_format_utils.cpp +++ b/layers/vk_format_utils.cpp @@ -167,7 +167,7 @@ const std::map vk_format_table = { {VK_FORMAT_S8_UINT, {1, 1, VK_FORMAT_COMPATIBILITY_CLASS_NONE_BIT}}, {VK_FORMAT_D16_UNORM_S8_UINT, {3, 2, VK_FORMAT_COMPATIBILITY_CLASS_NONE_BIT}}, {VK_FORMAT_D24_UNORM_S8_UINT, {4, 2, VK_FORMAT_COMPATIBILITY_CLASS_NONE_BIT}}, - {VK_FORMAT_D32_SFLOAT_S8_UINT, {5, 2, VK_FORMAT_COMPATIBILITY_CLASS_NONE_BIT}}, + {VK_FORMAT_D32_SFLOAT_S8_UINT, {8, 2, VK_FORMAT_COMPATIBILITY_CLASS_NONE_BIT}}, {VK_FORMAT_BC1_RGB_UNORM_BLOCK, {8, 4, VK_FORMAT_COMPATIBILITY_CLASS_BC1_RGB_BIT}}, {VK_FORMAT_BC1_RGB_SRGB_BLOCK, {8, 4, VK_FORMAT_COMPATIBILITY_CLASS_BC1_RGB_BIT}}, {VK_FORMAT_BC1_RGBA_UNORM_BLOCK, {8, 4, VK_FORMAT_COMPATIBILITY_CLASS_BC1_RGBA_BIT}}, -- cgit v1.2.3