panvk: do not enable extension without required feature

The Vulkan spec states that if VK_KHR_shader_clock is supported,
shaderSubgroupClock is a required feature. So let's not enable that
extension unless we can...

Fixes: e9c2c32409 ("panvk: enable VK_KHR_shader_clock")
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: Ashley Smith <ashley.smith@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40944>
This commit is contained in:
Erik Faye-Lund 2026-04-14 11:46:51 +02:00 committed by Marge Bot
parent 8cb89853b8
commit c8ae72f51d
2 changed files with 1 additions and 2 deletions

View file

@ -310,7 +310,6 @@ dEQP-VK.api.device_init.create_device_global_priority_query_khr.basic,Fail
# New failures with VKCTS 1.4.4.0
dEQP-VK.binding_model.unused_invalid_descriptor.write.invalid.combined_image_sampler,Crash
dEQP-VK.binding_model.unused_invalid_descriptor.write.invalid.sampled_image,Crash
dEQP-VK.info.device_mandatory_features,Fail
dEQP-VK.pipeline.fast_linked_library.vertex_input.misc.unbound_input,Crash
dEQP-VK.pipeline.fast_linked_library.vertex_input.misc.unbound_input_dynamic,Crash
dEQP-VK.pipeline.monolithic.vertex_input.misc.unbound_input,Crash

View file

@ -95,7 +95,7 @@ panvk_per_arch(get_physical_device_extensions)(
.KHR_sampler_mirror_clamp_to_edge = true,
.KHR_sampler_ycbcr_conversion = true,
.KHR_separate_depth_stencil_layouts = true,
.KHR_shader_clock = true,
.KHR_shader_clock = device->kmod.dev->props.gpu_can_query_timestamp,
.KHR_shader_draw_parameters = true,
.KHR_shader_expect_assume = true,
.KHR_shader_float_controls = true,