anv: report actual AS descriptor limits

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38436>
This commit is contained in:
Iván Briano
2025-11-13 10:59:37 -08:00
committed by Marge Bot
parent 80c89909f3
commit 27695ac463
+4 -4
View File
@@ -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;
}