Module: Mesa
Branch: main
Commit: 4eb1eb0db196654e3faad58956cd01c88dd489a7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4eb1eb0db196654e3faad58956cd01c88dd489a7

Author: Lionel Landwerlin <[email protected]>
Date:   Mon Dec 11 11:19:05 2023 +0200

anv: promote EXT_vertex_attribute_divisor to KHR

Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Ivan Briano <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26632>

---

 src/intel/vulkan/anv_device.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index c3d533dc370..ed697d7a7fe 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -304,6 +304,7 @@ get_device_extensions(const struct anv_physical_device 
*device,
       .KHR_timeline_semaphore                = true,
       .KHR_uniform_buffer_standard_layout    = true,
       .KHR_variable_pointers                 = true,
+      .KHR_vertex_attribute_divisor          = true,
       .KHR_video_queue                       = device->video_decode_enabled,
       .KHR_video_decode_queue                = device->video_decode_enabled,
       .KHR_video_decode_h264                 = VIDEO_CODEC_H264DEC && 
device->video_decode_enabled,
@@ -761,7 +762,7 @@ get_features(const struct anv_physical_device *pdevice,
       .transformFeedback = true,
       .geometryStreams = true,
 
-      /* VK_EXT_vertex_attribute_divisor */
+      /* VK_KHR_vertex_attribute_divisor */
       .vertexAttributeInstanceRateDivisor = true,
       .vertexAttributeInstanceRateZeroDivisor = true,
 
@@ -1420,6 +1421,12 @@ get_properties(const struct anv_physical_device *pdevice,
       props->maxRayHitAttributeSize = BRW_RT_SIZEOF_HIT_ATTRIB_DATA;
    }
 
+   /* VK_KHR_vertex_attribute_divisor */
+   {
+      props->maxVertexAttribDivisor = UINT32_MAX / 16;
+      props->supportsNonZeroFirstInstance = true;
+   }
+
    /* VK_EXT_conservative_rasterization */
    {
       /* There's nothing in the public docs about this value as far as I can
@@ -1705,11 +1712,6 @@ get_properties(const struct anv_physical_device *pdevice,
       props->transformFeedbackRasterizationStreamSelect = false;
       props->transformFeedbackDraw = true;
    }
-
-   /* VK_EXT_vertex_attribute_divisor */
-   {
-      props->maxVertexAttribDivisor = UINT32_MAX / 16;
-   }
 }
 
 static uint64_t

Reply via email to