From 137e170bcb83c8b56a03a83fca7a6c154661e573 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 9 Feb 2022 23:11:50 +0200 Subject: [PATCH] anv: update limit for maxVertexInputBindingStride MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before: maxVertexInputBindingStride = 2048 (gen7+) After: maxVertexInputBindingStride = 2048 (gen7/gen8) maxVertexInputBindingStride = 4095 (gen9+) Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan/anv_device.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 99fa3242ca5..32f1e1c070c 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1858,8 +1858,20 @@ void anv_GetPhysicalDeviceProperties( .maxDescriptorSetInputAttachments = MAX_DESCRIPTOR_SET_INPUT_ATTACHMENTS, .maxVertexInputAttributes = MAX_VBS, .maxVertexInputBindings = MAX_VBS, + /* Broadwell PRMs: Volume 2d: Command Reference: Structures: + * + * VERTEX_ELEMENT_STATE::Source Element Offset: [0,2047] + */ .maxVertexInputAttributeOffset = 2047, - .maxVertexInputBindingStride = 2048, + /* Broadwell PRMs: Volume 2d: Command Reference: Structures: + * + * VERTEX_BUFFER_STATE::Buffer Pitch: [0,2048] + * + * Skylake PRMs: Volume 2d: Command Reference: Structures: + * + * VERTEX_BUFFER_STATE::Buffer Pitch: [0,4095] + */ + .maxVertexInputBindingStride = devinfo->ver < 9 ? 2048 : 4095, .maxVertexOutputComponents = 128, .maxTessellationGenerationLevel = 64, .maxTessellationPatchSize = 32,