zink: support cl_gl_sharing if dmabuf is supported

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33652>
This commit is contained in:
Mike Blumenkrantz
2025-01-30 10:07:41 -05:00
committed by Marge Bot
parent 93cd4ae0c0
commit d979cd8d9d
2 changed files with 3 additions and 1 deletions

View File

@@ -971,7 +971,7 @@ Rusticl extensions that are not part of any OpenCL version:
cl_khr_fp16 in progress (llvmpipe, radeonsi, zink, Available with environment variable RUSTICL_FEATURES=fp16)
cl_khr_gl_depth_images not started
cl_khr_gl_msaa_sharing not started
cl_khr_gl_sharing DONE (iris, radeonsi)
cl_khr_gl_sharing DONE (iris, radeonsi, zink)
cl_khr_icd DONE
cl_khr_initialize_memory not started
cl_khr_int64_base_atomics not started

View File

@@ -1113,6 +1113,8 @@ zink_init_screen_caps(struct zink_screen *screen)
caps->post_depth_coverage = screen->info.have_EXT_post_depth_coverage;
caps->cl_gl_sharing = caps->dmabuf && screen->info.have_KHR_external_semaphore_fd;
caps->string_marker = screen->instance_info->have_EXT_debug_utils;
caps->min_line_width =