turnip: enable VK_EXT_index_type_uint8
authorJonathan Marek <jonathan@marek.ca>
Sat, 20 Jun 2020 19:02:10 +0000 (15:02 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 23 Jun 2020 10:44:19 +0000 (10:44 +0000)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5579>

src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_extensions.py

index dfc6cf5aba192e1b04c15f44bcfb6081e6962ae1..ee8120a948d95d9016505e638909bf0586c0cd6b 100644 (file)
@@ -716,6 +716,12 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
          features->geometryStreams = false;
          break;
       }
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT: {
+         VkPhysicalDeviceIndexTypeUint8FeaturesEXT *features =
+            (VkPhysicalDeviceIndexTypeUint8FeaturesEXT *)ext;
+         features->indexTypeUint8 = true;
+         break;
+      }
       default:
          break;
       }
index 7d5c3eacc808d57e88a6e72acc9b9c1ec423bc5a..20539c7367e83b18a3df9f47370535efce4e06a6 100644 (file)
@@ -79,6 +79,7 @@ EXTENSIONS = [
     Extension('VK_KHR_external_fence_fd',                 1, True),
     Extension('VK_IMG_filter_cubic',                      1, 'device->gpu_id == 650'),
     Extension('VK_EXT_filter_cubic',                      1, 'device->gpu_id == 650'),
+    Extension('VK_EXT_index_type_uint8',                  1, True),
 ]
 
 MAX_API_VERSION = VkVersion(MAX_API_VERSION)