diff options
| author | Dave Houlton <daveh@lunarg.com> | 2017-04-28 14:03:39 -0600 |
|---|---|---|
| committer | Dave Houlton <daveh@lunarg.com> | 2017-04-28 14:32:21 -0600 |
| commit | a17fe5c8b992bf2958b7697d94738cdd504db05d (patch) | |
| tree | a54a77ace11785ff488142ff6d30211b8c079534 /layers/vk_format_utils.cpp | |
| parent | 976ff8b67747dcea4e88eb565202fc344b4fae57 (diff) | |
| download | usermoji-a17fe5c8b992bf2958b7697d94738cdd504db05d.tar.xz | |
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
Diffstat (limited to 'layers/vk_format_utils.cpp')
| -rw-r--r-- | layers/vk_format_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<VkFormat, VULKAN_FORMAT_INFO> 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}}, |
