From 5e728db32a8487ca55557b3d158c168d04024a28 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 24 Oct 2024 08:24:47 -0400 Subject: [PATCH] v3d: Add check to see if v3d supports cpu_queue Add support to check if v3d supports cpu_queue. 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 999519a4322..ca1ce5e3a32 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -966,6 +966,7 @@ v3d_screen_create(int fd, const struct pipe_screen_config *config, screen->has_cache_flush = 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); v3d_fence_screen_init(screen); diff --git a/src/gallium/drivers/v3d/v3d_screen.h b/src/gallium/drivers/v3d/v3d_screen.h index c4dfd509ddc..e9221e92c65 100644 --- a/src/gallium/drivers/v3d/v3d_screen.h +++ b/src/gallium/drivers/v3d/v3d_screen.h @@ -86,6 +86,7 @@ struct v3d_screen { bool has_cache_flush; bool has_perfmon; bool nonmsaa_texture_size_limit; + bool has_cpu_queue; #if USE_V3D_SIMULATOR struct v3d_simulator_file *sim_file;