From 8160d0b80eb748e4ea8207777195b6c54539f336 Mon Sep 17 00:00:00 2001 From: Ashley Smith Date: Thu, 12 Jun 2025 10:48:29 +0100 Subject: [PATCH] panfrost: Enable GL_EXT_shader_realtime_clock on panfrost v6+ Signed-off-by: Ashley Smith Reviewed-by: Erik Faye-Lund Part-of: --- docs/features.txt | 2 +- docs/relnotes/new_features.txt | 1 + src/gallium/drivers/panfrost/pan_screen.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index 30a216f20c8..01e49ea3188 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -333,7 +333,7 @@ Khronos, ARB, and OES extensions that are not part of any OpenGL or OpenGL ES ve GL_EXT_semaphore_fd DONE (radeonsi, zink, iris, crocus) GL_EXT_semaphore_win32 DONE (zink, d3d12) GL_EXT_shader_group_vote DONE (all drivers that support GL_ARB_shader_group_vote) - GL_EXT_shader_realtime_clock DONE (core only) + GL_EXT_shader_realtime_clock DONE (panfrost/v6+) GL_EXT_sRGB_write_control DONE (all drivers that support GLES 3.0+) GL_EXT_texture_compression_astc_decode_mode DONE (panfrost) GL_EXT_texture_norm16 DONE (freedreno, r600, radeonsi, nvc0i, softpipe, zink, iris, crocus) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index 9056c1eec80..20f0d5299f2 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -54,3 +54,4 @@ VK_KHR_maintenance6 on panvk/v10+ CL_sRGBA and CL_sBGRA images cl_khr_extended_bit_ops VK_KHR_shader_clock on panvk +GL_EXT_shader_realtime_clock on panfrost/v6+ diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 0454f4aa627..d550ad6d9dd 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -654,6 +654,8 @@ panfrost_init_screen_caps(struct panfrost_screen *screen) /* Compile side is TODO for Midgard. */ caps->shader_clock = dev->arch >= 6 && dev->kmod.props.gpu_can_query_timestamp; + caps->shader_realtime_clock = dev->arch >= 6 && + dev->kmod.props.gpu_can_query_timestamp; caps->vs_instanceid = true; caps->texture_multisample = true;