mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
radv: remove VK_VALVE_descriptor_set_host_mapping
This extension was only enabled for vkd3d-proton and it's obsolete since VK_EXT_descriptor_buffer, which landed in September 2022. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32218>
This commit is contained in:
parent
c3ee2129ae
commit
92446a2dcc
3 changed files with 1 additions and 31 deletions
|
|
@ -1655,27 +1655,6 @@ radv_UpdateDescriptorSetWithTemplate(VkDevice _device, VkDescriptorSet descripto
|
|||
radv_update_descriptor_set_with_template_impl(device, NULL, set, descriptorUpdateTemplate, pData);
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_GetDescriptorSetLayoutHostMappingInfoVALVE(VkDevice _device,
|
||||
const VkDescriptorSetBindingReferenceVALVE *pBindingReference,
|
||||
VkDescriptorSetLayoutHostMappingInfoVALVE *pHostMapping)
|
||||
{
|
||||
struct radv_descriptor_set_layout *set_layout =
|
||||
radv_descriptor_set_layout_from_handle(pBindingReference->descriptorSetLayout);
|
||||
|
||||
const struct radv_descriptor_set_binding_layout *binding_layout = set_layout->binding + pBindingReference->binding;
|
||||
|
||||
pHostMapping->descriptorOffset = binding_layout->offset;
|
||||
pHostMapping->descriptorSize = binding_layout->size;
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_GetDescriptorSetHostMappingVALVE(VkDevice _device, VkDescriptorSet descriptorSet, void **ppData)
|
||||
{
|
||||
VK_FROM_HANDLE(radv_descriptor_set, set, descriptorSet);
|
||||
*ppData = set->header.mapped_ptr;
|
||||
}
|
||||
|
||||
/* VK_EXT_descriptor_buffer */
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
radv_GetDescriptorSetLayoutSizeEXT(VkDevice device, VkDescriptorSetLayout layout, VkDeviceSize *pLayoutSizeInBytes)
|
||||
|
|
|
|||
|
|
@ -1172,8 +1172,7 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
device->vk.enabled_extensions.EXT_buffer_device_address ||
|
||||
device->vk.enabled_extensions.KHR_buffer_device_address ||
|
||||
device->vk.enabled_extensions.KHR_ray_tracing_pipeline ||
|
||||
device->vk.enabled_extensions.KHR_acceleration_structure ||
|
||||
device->vk.enabled_extensions.VALVE_descriptor_set_host_mapping;
|
||||
device->vk.enabled_extensions.KHR_acceleration_structure;
|
||||
|
||||
radv_init_shader_arenas(device);
|
||||
|
||||
|
|
|
|||
|
|
@ -757,11 +757,6 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
|
|||
.INTEL_shader_integer_functions2 = true,
|
||||
.MESA_image_alignment_control = pdev->info.gfx_level >= GFX9 && pdev->info.gfx_level <= GFX11_5,
|
||||
.NV_compute_shader_derivatives = true,
|
||||
/* Undocumented extension purely for vkd3d-proton. This check is to prevent anyone else from
|
||||
* using it.
|
||||
*/
|
||||
.VALVE_descriptor_set_host_mapping =
|
||||
pdev->vk.instance->app_info.engine_name && strcmp(pdev->vk.instance->app_info.engine_name, "vkd3d") == 0,
|
||||
.VALVE_mutable_descriptor_type = true,
|
||||
};
|
||||
*out_ext = ext;
|
||||
|
|
@ -1103,9 +1098,6 @@ radv_physical_device_get_features(const struct radv_physical_device *pdev, struc
|
|||
.primitiveFragmentShadingRateMeshShader = taskmesh_en,
|
||||
.meshShaderQueries = false,
|
||||
|
||||
/* VK_VALVE_descriptor_set_host_mapping */
|
||||
.descriptorSetHostMapping = true,
|
||||
|
||||
/* VK_EXT_depth_clip_control */
|
||||
.depthClipControl = true,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue