anv: Support v3 of VK_EXT_vertex_attribute_divisor
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 10 Sep 2018 17:05:41 +0000 (12:05 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 10 Sep 2018 18:45:32 +0000 (13:45 -0500)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py

index 47c6c6e93b4574f2b578e89eba25cab92f953a78..1e37876eb4363831f3f72afa9833a9e43deb0604 100644 (file)
@@ -934,6 +934,14 @@ void anv_GetPhysicalDeviceFeatures2(
          break;
       }
 
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT: {
+         VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT *features =
+            (VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT *)ext;
+         features->vertexAttributeInstanceRateDivisor = VK_TRUE;
+         features->vertexAttributeInstanceRateZeroDivisor = VK_TRUE;
+         break;
+      }
+
       default:
          anv_debug_ignored_stype(ext->sType);
          break;
index a21aee5a001b4c90877187ec11f0509dfe4aa232..951505a854e4dd10abbb633679ea25039baeeae4 100644 (file)
@@ -122,7 +122,7 @@ EXTENSIONS = [
               'device->has_context_priority'),
     Extension('VK_EXT_shader_viewport_index_layer',       1, True),
     Extension('VK_EXT_shader_stencil_export',             1, 'device->info.gen >= 9'),
-    Extension('VK_EXT_vertex_attribute_divisor',          2, True),
+    Extension('VK_EXT_vertex_attribute_divisor',          3, True),
     Extension('VK_EXT_post_depth_coverage',               1, 'device->info.gen >= 9'),
     Extension('VK_EXT_sampler_filter_minmax',             1, 'device->info.gen >= 9'),
 ]