radv: advertise VK_KHR_maintenance9

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35423>
This commit is contained in:
Samuel Pitoiset 2025-06-10 09:07:53 +02:00 committed by Marge Bot
parent 99fb1a9bd7
commit d5da47f831
3 changed files with 15 additions and 0 deletions

View file

@ -551,6 +551,7 @@ Khronos extensions that are not part of any Vulkan version:
VK_KHR_get_surface_capabilities2 DONE (anv, hk, lvp, nvk, pvr, radv, tu, v3dv, vn)
VK_KHR_incremental_present DONE (anv, hasvk, hk, lvp, nvk, radv, tu, v3dv, vn)
VK_KHR_maintenance7 DONE (anv, hk, lvp, nvk, radv, tu, vn)
VK_KHR_maintenance9 DONE (radv)
VK_KHR_performance_query DONE (anv, radv/gfx10.3+, tu, v3dv)
VK_KHR_pipeline_binary DONE (radv)
VK_KHR_pipeline_executable_properties DONE (anv, hk, nvk, panvk, hasvk, radv, tu, v3dv)

View file

@ -44,3 +44,4 @@ cl_khr_spirv_queries
VK_EXT_depth_clamp_zero_one on panvk
VK_KHR_depth_clamp_zero_one on panvk
VK_EXT_depth_clip_control on panvk
VK_KHR_maintenance9 on RADV

View file

@ -552,6 +552,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
.KHR_maintenance6 = true,
.KHR_maintenance7 = true,
.KHR_maintenance8 = true,
.KHR_maintenance9 = true,
.KHR_map_memory2 = true,
.KHR_multiview = true,
.KHR_performance_query = radv_perf_query_supported(pdev),
@ -1319,6 +1320,9 @@ radv_physical_device_get_features(const struct radv_physical_device *pdev, struc
/* VK_KHR_video_decode_vp9 */
.videoDecodeVP9 = true,
/* VK_KHR_maintenance9 */
.maintenance9 = true,
};
}
@ -1955,6 +1959,10 @@ radv_get_physical_device_properties(struct radv_physical_device *pdev)
.supportedIndirectCommandsShaderStagesShaderBinding = VK_SHADER_STAGE_COMPUTE_BIT,
.deviceGeneratedCommandsTransformFeedback = true,
.deviceGeneratedCommandsMultiDrawIndirectCount = true,
/* VK_KHR_maintenance9 */
.image2DViewOf3DSparse = pdev->info.gfx_level >= GFX8,
.defaultVertexAttributeValue = VK_DEFAULT_VERTEX_ATTRIBUTE_VALUE_ZERO_ZERO_ZERO_ZERO_KHR,
};
struct vk_properties *p = &pdev->vk.properties;
@ -2579,6 +2587,11 @@ radv_GetPhysicalDeviceQueueFamilyProperties2(VkPhysicalDevice physicalDevice, ui
}
break;
}
case VK_STRUCTURE_TYPE_QUEUE_FAMILY_OWNERSHIP_TRANSFER_PROPERTIES_KHR: {
VkQueueFamilyOwnershipTransferPropertiesKHR *prop = (VkQueueFamilyOwnershipTransferPropertiesKHR *)ext;
prop->optimalImageTransferToQueueFamilies = ~0;
break;
}
default:
break;
}