From 27695ac463d4ee4bf3a6133a3ff705585a008667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Briano?= Date: Thu, 13 Nov 2025 10:59:37 -0800 Subject: [PATCH] anv: report actual AS descriptor limits Reviewed-by: Sagar Ghuge Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_physical_device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/anv_physical_device.c b/src/intel/vulkan/anv_physical_device.c index 9aa4e6f6e03..feaecfb82cb 100644 --- a/src/intel/vulkan/anv_physical_device.c +++ b/src/intel/vulkan/anv_physical_device.c @@ -1465,10 +1465,10 @@ get_properties(const struct anv_physical_device *pdevice, props->maxGeometryCount = (1u << 24) - 1; props->maxInstanceCount = (1u << 24) - 1; props->maxPrimitiveCount = (1u << 29) - 1; - props->maxPerStageDescriptorAccelerationStructures = UINT16_MAX; - props->maxPerStageDescriptorUpdateAfterBindAccelerationStructures = UINT16_MAX; - props->maxDescriptorSetAccelerationStructures = UINT16_MAX; - props->maxDescriptorSetUpdateAfterBindAccelerationStructures = UINT16_MAX; + props->maxPerStageDescriptorAccelerationStructures = desc_limits.max_resources; + props->maxPerStageDescriptorUpdateAfterBindAccelerationStructures = desc_limits.max_resources; + props->maxDescriptorSetAccelerationStructures = desc_limits.max_resources; + props->maxDescriptorSetUpdateAfterBindAccelerationStructures = desc_limits.max_resources; props->minAccelerationStructureScratchOffsetAlignment = 64; }