From 8e1b27138cd062ee922a69d89a8d406b2c026979 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 24 Oct 2024 08:26:31 -0400 Subject: [PATCH] v3d: Add check to see if v3d supports multisync Add support to check if v3d supports the multisync extension. This will be used in future patches to enable support for PIPE_CAP_QUERY_TIMESTAMP & PIPE_CAP_QUERY_TIME_ELAPSED. Reviewed-by: Iago Toral Quiroga Part-of: --- src/gallium/drivers/v3d/v3d_screen.c | 1 + src/gallium/drivers/v3d/v3d_screen.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index ca1ce5e3a32..8b0268b522a 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -967,6 +967,7 @@ v3d_screen_create(int fd, const struct pipe_screen_config *config, v3d_has_feature(screen, DRM_V3D_PARAM_SUPPORTS_CACHE_FLUSH); screen->has_perfmon = v3d_has_feature(screen, DRM_V3D_PARAM_SUPPORTS_PERFMON); screen->has_cpu_queue = v3d_has_feature(screen, DRM_V3D_PARAM_SUPPORTS_CPU_QUEUE); + screen->has_multisync = v3d_has_feature(screen, DRM_V3D_PARAM_SUPPORTS_MULTISYNC_EXT); v3d_fence_screen_init(screen); diff --git a/src/gallium/drivers/v3d/v3d_screen.h b/src/gallium/drivers/v3d/v3d_screen.h index e9221e92c65..831ce8d7213 100644 --- a/src/gallium/drivers/v3d/v3d_screen.h +++ b/src/gallium/drivers/v3d/v3d_screen.h @@ -87,6 +87,7 @@ struct v3d_screen { bool has_perfmon; bool nonmsaa_texture_size_limit; bool has_cpu_queue; + bool has_multisync; #if USE_V3D_SIMULATOR struct v3d_simulator_file *sim_file;