From e9444b28fde33d57ed687cd73fafb29396e7e38e Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 15 Sep 2025 15:08:32 -0700 Subject: [PATCH] panvk: require gpu_can_query_timestamp for calibrated timestamps Advertise the extensions without VK_TIME_DOMAIN_DEVICE_KHR support is not very useful. Reviewed-by: Yiwei Zhang Acked-by: Boris Brezillon Part-of: --- src/panfrost/vulkan/panvk_vX_physical_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/vulkan/panvk_vX_physical_device.c b/src/panfrost/vulkan/panvk_vX_physical_device.c index 7f86e8f6a04..ef630846a2b 100644 --- a/src/panfrost/vulkan/panvk_vX_physical_device.c +++ b/src/panfrost/vulkan/panvk_vX_physical_device.c @@ -49,7 +49,7 @@ panvk_per_arch(get_physical_device_extensions)( .KHR_shader_atomic_int64 = PAN_ARCH >= 9, .KHR_bind_memory2 = true, .KHR_buffer_device_address = true, - .KHR_calibrated_timestamps = true, + .KHR_calibrated_timestamps = device->kmod.props.gpu_can_query_timestamp, .KHR_copy_commands2 = true, .KHR_create_renderpass2 = true, .KHR_dedicated_allocation = true, @@ -126,7 +126,7 @@ panvk_per_arch(get_physical_device_extensions)( .EXT_4444_formats = true, .EXT_border_color_swizzle = true, .EXT_buffer_device_address = true, - .EXT_calibrated_timestamps = true, + .EXT_calibrated_timestamps = device->kmod.props.gpu_can_query_timestamp, .EXT_custom_border_color = true, .EXT_depth_bias_control = true, .EXT_depth_clamp_zero_one = true,