From 098ee11c1c3df22d033553227b7a343c47291f5f Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Sun, 20 Apr 2025 10:12:48 +0200 Subject: [PATCH] panvk: Set supportsNonZeroFirstInstance=true We now support non-zero firstInstance when instance attributes have a divisor != 1. Signed-off-by: Boris Brezillon Reviewed-by: Olivia Lee Part-of: --- docs/relnotes/new_features.txt | 1 + src/panfrost/vulkan/panvk_physical_device.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index ac37f5ac3a7..a92d6e36e03 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -3,3 +3,4 @@ VK_EXT_vertex_input_dynamic_state/vertexInputDynamicState on panvk pushDescriptor on panvk VK_EXT_vertex_input_dynamic_state on panvk VK_EXT_vertex_attribute_divisor on panvk +supportsNonZeroFirstInstance on panvk diff --git a/src/panfrost/vulkan/panvk_physical_device.c b/src/panfrost/vulkan/panvk_physical_device.c index f230f1f9e69..4d8ff724004 100644 --- a/src/panfrost/vulkan/panvk_physical_device.c +++ b/src/panfrost/vulkan/panvk_physical_device.c @@ -1016,7 +1016,7 @@ get_device_properties(const struct panvk_instance *instance, /* VK_KHR_vertex_attribute_divisor */ /* We will have to restrict this a bit for multiview */ .maxVertexAttribDivisor = UINT32_MAX, - .supportsNonZeroFirstInstance = false, + .supportsNonZeroFirstInstance = true, /* VK_KHR_push_descriptor */ .maxPushDescriptors = MAX_PUSH_DESCRIPTORS,