Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes:
d258b0bf0e07 ("anv: Add support for binding acceleration structures")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16058>
entry->array_count);
break;
+ case VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR:
+ for (uint32_t j = 0; j < entry->array_count; j++) {
+ VkAccelerationStructureKHR *accel_obj =
+ (VkAccelerationStructureKHR *)(data + entry->offset + j * entry->stride);
+ ANV_FROM_HANDLE(anv_acceleration_structure, accel, *accel_obj);
+
+ anv_descriptor_set_write_acceleration_structure(device, set,
+ accel,
+ entry->binding,
+ entry->array_element + j);
+ }
+ break;
+
default:
break;
}