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>
(cherry picked from commit c8ae72f51d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41269>
This commit is contained in:
Erik Faye-Lund 2026-04-14 11:46:51 +02:00 committed by Eric Engestrom
parent 092f5b01c2
commit 9f5e19e05a
3 changed files with 2 additions and 3 deletions

View file

@ -4034,7 +4034,7 @@
"description": "panvk: do not enable extension without required feature",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "e9c2c3240949196a5584ed1c54df4b9bb75dcbf3",
"notes": null

View file

@ -349,7 +349,6 @@ dEQP-VK.pipeline.pipeline_library.empty_fs.masked_samples,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,