mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
anv: promote EXT_index_type_uint8 to KHR
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27274>
This commit is contained in:
parent
1aa832e5f5
commit
976d5b9551
3 changed files with 4 additions and 3 deletions
|
|
@ -253,6 +253,7 @@ get_device_extensions(const struct anv_physical_device *device,
|
|||
#ifdef ANV_USE_WSI_PLATFORM
|
||||
.KHR_incremental_present = true,
|
||||
#endif
|
||||
.KHR_index_type_uint8 = true,
|
||||
.KHR_maintenance1 = true,
|
||||
.KHR_maintenance2 = true,
|
||||
.KHR_maintenance3 = true,
|
||||
|
|
|
|||
|
|
@ -437,7 +437,7 @@ vk_to_grl_IndexFormat(VkIndexType type)
|
|||
{
|
||||
switch (type) {
|
||||
case VK_INDEX_TYPE_NONE_KHR: return INDEX_FORMAT_NONE;
|
||||
case VK_INDEX_TYPE_UINT8_EXT: unreachable("No UINT8 support yet");
|
||||
case VK_INDEX_TYPE_UINT8_KHR: unreachable("No UINT8 support yet");
|
||||
case VK_INDEX_TYPE_UINT16: return INDEX_FORMAT_R16_UINT;
|
||||
case VK_INDEX_TYPE_UINT32: return INDEX_FORMAT_R32_UINT;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -5193,7 +5193,7 @@ void genX(CmdWaitEvents2)(
|
|||
static uint32_t vk_to_intel_index_type(VkIndexType type)
|
||||
{
|
||||
switch (type) {
|
||||
case VK_INDEX_TYPE_UINT8_EXT:
|
||||
case VK_INDEX_TYPE_UINT8_KHR:
|
||||
return INDEX_BYTE;
|
||||
case VK_INDEX_TYPE_UINT16:
|
||||
return INDEX_WORD;
|
||||
|
|
@ -5207,7 +5207,7 @@ static uint32_t vk_to_intel_index_type(VkIndexType type)
|
|||
static uint32_t restart_index_for_type(VkIndexType type)
|
||||
{
|
||||
switch (type) {
|
||||
case VK_INDEX_TYPE_UINT8_EXT:
|
||||
case VK_INDEX_TYPE_UINT8_KHR:
|
||||
return UINT8_MAX;
|
||||
case VK_INDEX_TYPE_UINT16:
|
||||
return UINT16_MAX;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue