RADV: Acceleration Structure not handled for VK_DESCRIPTOR_TYPE_MUTABLE_EXT
radv_mutable_descriptor_type_size_alignment
doesn't handle VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
and can fail
The following is a reproducible example
VkDescriptorSetLayoutBinding bindings = {};
bindings.binding = 0;
bindings.descriptorType = VK_DESCRIPTOR_TYPE_MUTABLE_EXT;
bindings.descriptorCount = 1;
bindings.stageFlags = VK_SHADER_STAGE_ALL;
bindings.pImmutableSamplers = nullptr;
VkDescriptorType descriptor_types = VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR;
VkMutableDescriptorTypeListEXT mutable_descriptor_type_list = {};
mutable_descriptor_type_list.descriptorTypeCount = 1;
mutable_descriptor_type_list.pDescriptorTypes = &descriptor_types;
VkMutableDescriptorTypeCreateInfoEXT mdtci;
mdtci.mutableDescriptorTypeListCount = 1;
mdtci.pMutableDescriptorTypeLists = &mutable_descriptor_type_list;
VkDescriptorSetLayoutCreateInfo create_info;
create_info.pNext = &mdtci;
create_info.bindingCount = 1;
create_info.pBindings = &bindings;
vkCreateDescriptorSetLayout(device, &create_info, NULL, &layout);
There is not VU in VkMutableDescriptorTypeListEXT
saying that VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR
is not allowed and this seems to work on other implementations