summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_screen.c
diff options
context:
space:
mode:
authorAntonio Gomes <antoniospg100@gmail.com>2023-11-06 12:22:53 -0300
committerMarge Bot <emma+marge@anholt.net>2024-02-23 13:29:00 +0000
commit12f1a4c311ce45835409c20ce76f39d3dcf950ea (patch)
tree4d299d7c29786103b6f622c4dd18e4714f230532 /src/gallium/auxiliary/util/u_screen.c
parent50f6478e3dab9e355fe65203bd486ae4cc5c6702 (diff)
gallium: Add new PIPE_CAP_CL_GL_SHARING
We have a situation where some drivers have all the required features, but they are not working with gl_sharing, so we end up advertising it wrongly. Add this cap to ensure this driver was tested to work with cl_khr_gl_sharing. Reviewed-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26071>
Diffstat (limited to 'src/gallium/auxiliary/util/u_screen.c')
-rw-r--r--src/gallium/auxiliary/util/u_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index 78cc8d9bb3f..a9c3f6c37dd 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -451,6 +451,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
return 0;
#endif
+ case PIPE_CAP_CL_GL_SHARING:
+ return 0;
+
case PIPE_CAP_TEXTURE_SHADOW_MAP: /* Enables ARB_shadow */
return 1;