egl: Advertise EGL_MESA_gl_interop extension if support present
Signed-off-by: Sylvain Munaut <tnt@246tNt.com> Acked-by: Antonio Gomes <antoniospg100@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24573>
This commit is contained in:

committed by
Marge Bot

parent
8ee8788208
commit
caf15a3276
@@ -870,6 +870,10 @@ dri2_setup_screen(_EGLDisplay *disp)
|
|||||||
disp->Extensions.KHR_no_config_context = EGL_TRUE;
|
disp->Extensions.KHR_no_config_context = EGL_TRUE;
|
||||||
disp->Extensions.KHR_surfaceless_context = EGL_TRUE;
|
disp->Extensions.KHR_surfaceless_context = EGL_TRUE;
|
||||||
|
|
||||||
|
if (dri2_dpy->interop) {
|
||||||
|
disp->Extensions.MESA_gl_interop = EGL_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
if (dri2_dpy->configOptions) {
|
if (dri2_dpy->configOptions) {
|
||||||
disp->Extensions.MESA_query_driver = EGL_TRUE;
|
disp->Extensions.MESA_query_driver = EGL_TRUE;
|
||||||
}
|
}
|
||||||
|
@@ -588,6 +588,7 @@ _eglCreateExtensionsString(_EGLDisplay *disp)
|
|||||||
if (disp->Extensions.KHR_no_config_context)
|
if (disp->Extensions.KHR_no_config_context)
|
||||||
_eglAppendExtension(&exts, "EGL_MESA_configless_context");
|
_eglAppendExtension(&exts, "EGL_MESA_configless_context");
|
||||||
_EGL_CHECK_EXTENSION(MESA_drm_image);
|
_EGL_CHECK_EXTENSION(MESA_drm_image);
|
||||||
|
_EGL_CHECK_EXTENSION(MESA_gl_interop);
|
||||||
_EGL_CHECK_EXTENSION(MESA_image_dma_buf_export);
|
_EGL_CHECK_EXTENSION(MESA_image_dma_buf_export);
|
||||||
_EGL_CHECK_EXTENSION(MESA_query_driver);
|
_EGL_CHECK_EXTENSION(MESA_query_driver);
|
||||||
|
|
||||||
|
@@ -141,6 +141,7 @@ struct _egl_extensions {
|
|||||||
EGLBoolean KHR_wait_sync;
|
EGLBoolean KHR_wait_sync;
|
||||||
|
|
||||||
EGLBoolean MESA_drm_image;
|
EGLBoolean MESA_drm_image;
|
||||||
|
EGLBoolean MESA_gl_interop;
|
||||||
EGLBoolean MESA_image_dma_buf_export;
|
EGLBoolean MESA_image_dma_buf_export;
|
||||||
EGLBoolean MESA_query_driver;
|
EGLBoolean MESA_query_driver;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user