tu: Promote VK_EXT_index_type_uint8 to KHR

Signed-off-by: Valentine Burley <valentine.burley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28052>
This commit is contained in:
Valentine Burley 2024-03-07 17:33:54 +00:00 committed by Marge Bot
parent 7ea5d1ed7d
commit 2d3ed6853d
2 changed files with 4 additions and 2 deletions

View file

@ -2451,7 +2451,7 @@ tu_CmdBindIndexBuffer2KHR(VkCommandBuffer commandBuffer,
index_size = INDEX4_SIZE_32_BIT;
index_shift = 2;
break;
case VK_INDEX_TYPE_UINT8_EXT:
case VK_INDEX_TYPE_UINT8_KHR:
index_size = INDEX4_SIZE_8_BIT;
index_shift = 0;
break;

View file

@ -164,6 +164,7 @@ get_device_extensions(const struct tu_physical_device *device,
.KHR_image_format_list = true,
.KHR_imageless_framebuffer = true,
.KHR_incremental_present = TU_HAS_SURFACE,
.KHR_index_type_uint8 = true,
.KHR_maintenance1 = true,
.KHR_maintenance2 = true,
.KHR_maintenance3 = true,
@ -430,8 +431,9 @@ tu_get_features(struct tu_physical_device *pdevice,
features->transformFeedback = true;
features->geometryStreams = true;
/* VK_EXT_index_type_uint8 */
/* VK_KHR_index_type_uint8 */
features->indexTypeUint8 = true;
/* VK_EXT_vertex_attribute_divisor */
features->vertexAttributeInstanceRateDivisor = true;
features->vertexAttributeInstanceRateZeroDivisor = true;