From 245583075ce09fe19eec6ef9e7dd1740dfec6e46 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 7 Jul 2015 11:26:26 -0700 Subject: [PATCH] vk/vulkan.h: Remove UINT8 index buffers --- include/vulkan/vulkan.h | 9 ++++----- src/vulkan/device.c | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index baa5c6a4b5e..a150f0f875e 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -839,12 +839,11 @@ typedef enum { } VkStateBindPoint; typedef enum { - VK_INDEX_TYPE_UINT8 = 0, - VK_INDEX_TYPE_UINT16 = 1, - VK_INDEX_TYPE_UINT32 = 2, - VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT8, + VK_INDEX_TYPE_UINT16 = 0, + VK_INDEX_TYPE_UINT32 = 1, + VK_INDEX_TYPE_BEGIN_RANGE = VK_INDEX_TYPE_UINT16, VK_INDEX_TYPE_END_RANGE = VK_INDEX_TYPE_UINT32, - VK_INDEX_TYPE_NUM = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT8 + 1), + VK_INDEX_TYPE_NUM = (VK_INDEX_TYPE_UINT32 - VK_INDEX_TYPE_UINT16 + 1), VK_INDEX_TYPE_MAX_ENUM = 0x7FFFFFFF } VkIndexType; diff --git a/src/vulkan/device.c b/src/vulkan/device.c index b1cc618fdd3..5237f2d6f82 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -2717,7 +2717,6 @@ void anv_CmdBindIndexBuffer( struct anv_buffer *buffer = (struct anv_buffer *) _buffer; static const uint32_t vk_to_gen_index_type[] = { - [VK_INDEX_TYPE_UINT8] = INDEX_BYTE, [VK_INDEX_TYPE_UINT16] = INDEX_WORD, [VK_INDEX_TYPE_UINT32] = INDEX_DWORD, }; -- 2.30.2