From: Marek Olšák Date: Mon, 11 May 2015 20:18:04 +0000 (+0200) Subject: egl: expose EGL 1.5 if all requirements are met X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1cb407b049bb431b0f6f21e6e376d11f136af67;p=mesa.git egl: expose EGL 1.5 if all requirements are met There's no driver support yet, because EGL_KHR_gl_colorspace isn't implemented. Reviewed-by: Emil Velikov Reviewed-by: Chad Versace --- diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index bc360fe9107..105e919683a 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -451,6 +451,21 @@ static void _eglComputeVersion(_EGLDisplay *disp) { disp->Version = 14; + + if (disp->Extensions.KHR_fence_sync && + disp->Extensions.KHR_cl_event2 && + disp->Extensions.KHR_wait_sync && + disp->Extensions.KHR_image_base && + disp->Extensions.KHR_gl_texture_2D_image && + disp->Extensions.KHR_gl_texture_3D_image && + disp->Extensions.KHR_gl_texture_cubemap_image && + disp->Extensions.KHR_gl_renderbuffer_image && + disp->Extensions.KHR_create_context && + disp->Extensions.EXT_create_context_robustness && + disp->Extensions.KHR_get_all_proc_addresses && + disp->Extensions.KHR_gl_colorspace && + disp->Extensions.KHR_surfaceless_context) + disp->Version = 15; } /** diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h index bc8cc7d6319..84cfbe19f7e 100644 --- a/src/egl/main/egldisplay.h +++ b/src/egl/main/egldisplay.h @@ -101,6 +101,7 @@ struct _egl_extensions EGLBoolean KHR_image_pixmap; EGLBoolean KHR_vg_parent_image; EGLBoolean KHR_get_all_proc_addresses; + EGLBoolean KHR_gl_colorspace; EGLBoolean KHR_gl_texture_2D_image; EGLBoolean KHR_gl_texture_cubemap_image; EGLBoolean KHR_gl_texture_3D_image;