panvk: enable VK_KHR_shader_clock

CTS passing and manual tests show it's working well

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Ashley Smith <ashley.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35488>
This commit is contained in:
Ashley Smith 2025-06-12 10:33:48 +01:00 committed by Marge Bot
parent 20ec897598
commit e9c2c32409
3 changed files with 7 additions and 1 deletions

View file

@ -563,7 +563,7 @@ Khronos extensions that are not part of any Vulkan version:
VK_KHR_ray_tracing_pipeline DONE (anv/gfx12.5+, lvp, radv/gfx10.3+, vn) VK_KHR_ray_tracing_pipeline DONE (anv/gfx12.5+, lvp, radv/gfx10.3+, vn)
VK_KHR_ray_tracing_position_fetch DONE (anv, radv/gfx10.3+, vn) VK_KHR_ray_tracing_position_fetch DONE (anv, radv/gfx10.3+, vn)
VK_KHR_shader_bfloat16 DONE (anv/gfx12.5+, radv/gfx12+) VK_KHR_shader_bfloat16 DONE (anv/gfx12.5+, radv/gfx12+)
VK_KHR_shader_clock DONE (anv, hasvk, lvp, nvk, radv, tu, vn) VK_KHR_shader_clock DONE (anv, hasvk, lvp, nvk, panvk, radv, tu, vn)
VK_KHR_shader_maximal_reconvergence DONE (anv, hk, lvp, nvk, panvk/v10+, radv, vn) VK_KHR_shader_maximal_reconvergence DONE (anv, hk, lvp, nvk, panvk/v10+, radv, vn)
VK_KHR_shader_relaxed_extended_instruction DONE (anv, hasvk, hk, nvk, panvk, radv, tu, v3dv, vn) VK_KHR_shader_relaxed_extended_instruction DONE (anv, hasvk, hk, nvk, panvk, radv, tu, v3dv, vn)
VK_KHR_shader_subgroup_uniform_control_flow DONE (anv, hasvk, hk, nvk, panvk/v10+, radv, tu, vn) VK_KHR_shader_subgroup_uniform_control_flow DONE (anv, hasvk, hk, nvk, panvk/v10+, radv, tu, vn)

View file

@ -53,3 +53,4 @@ cl_khr_priority_hints
VK_KHR_maintenance6 on panvk/v10+ VK_KHR_maintenance6 on panvk/v10+
CL_sRGBA and CL_sBGRA images CL_sRGBA and CL_sBGRA images
cl_khr_extended_bit_ops cl_khr_extended_bit_ops
VK_KHR_shader_clock on panvk

View file

@ -87,6 +87,7 @@ panvk_per_arch(get_physical_device_extensions)(
.KHR_sampler_mirror_clamp_to_edge = true, .KHR_sampler_mirror_clamp_to_edge = true,
.KHR_sampler_ycbcr_conversion = PAN_ARCH >= 10, .KHR_sampler_ycbcr_conversion = PAN_ARCH >= 10,
.KHR_separate_depth_stencil_layouts = true, .KHR_separate_depth_stencil_layouts = true,
.KHR_shader_clock = true,
.KHR_shader_draw_parameters = true, .KHR_shader_draw_parameters = true,
.KHR_shader_expect_assume = true, .KHR_shader_expect_assume = true,
.KHR_shader_float_controls = true, .KHR_shader_float_controls = true,
@ -425,6 +426,10 @@ panvk_per_arch(get_physical_device_features)(
/* VK_EXT_pipeline_robustness */ /* VK_EXT_pipeline_robustness */
.pipelineRobustness = true, .pipelineRobustness = true,
/* VK_KHR_shader_clock */
.shaderSubgroupClock = device->kmod.props.gpu_can_query_timestamp,
.shaderDeviceClock = device->kmod.props.gpu_can_query_timestamp,
/* VK_KHR_shader_float_controls2 */ /* VK_KHR_shader_float_controls2 */
.shaderFloatControls2 = true, .shaderFloatControls2 = true,