From ff2c4e8f1153def7325a0239eb7afd1e44a36810 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 13 Oct 2024 16:47:01 -0400 Subject: [PATCH] zink: add CL CTS result Part-of: --- docs/features.txt | 2 +- src/gallium/drivers/zink/zink_screen.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index e6b28cc70e8..4987f7b96c9 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -935,7 +935,7 @@ Rusticl OpenCL 2.2 -- all DONE: Support SPIR-V 1.1 and 1.2 DONE -Rusticl OpenCL 3.0 -- all DONE: asahi, iris/gen12 +Rusticl OpenCL 3.0 -- all DONE: asahi, iris/gen12, zink Optional device capabilities queries DONE cl_khr_extended_versioning DONE diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 77e1c2eebd4..2027eeb6ef0 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -3280,6 +3280,13 @@ zink_screen_get_fd(struct pipe_screen *pscreen) return screen->drm_fd; } +static const char* +zink_cl_cts_version(struct pipe_screen *pscreen) +{ + /* https://www.khronos.org/conformance/adopters/conformant-products/opencl#submission_437 */ + return "v2024-08-08-00"; +} + static struct zink_screen * zink_internal_create_screen(const struct pipe_screen_config *config, int64_t dev_major, int64_t dev_minor, uint64_t adapter_luid) { @@ -3549,6 +3556,7 @@ zink_internal_create_screen(const struct pipe_screen_config *config, int64_t dev screen->base.get_driver_query_group_info = zink_get_driver_query_group_info; screen->base.get_driver_query_info = zink_get_driver_query_info; screen->base.set_damage_region = zink_set_damage_region; + screen->base.get_cl_cts_version = zink_cl_cts_version; if (screen->info.have_EXT_sample_locations) { VkMultisamplePropertiesEXT prop;