From 26f9faa04b4e924bc8e1fc35a5d75179063764e6 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 21 Nov 2012 16:55:43 -0800 Subject: [PATCH] intel: Expose support for DRI_API_GLES3 If the hardware/driver combo supports GLES3, then set the GLES3 bit in intel_screen's bitmask of supported DRI API's. Neither the EGL nor GLX layer uses the bit yet. Signed-off-by: Chad Versace Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/intel/intel_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index d88c119f427..659a2e63b84 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -1199,6 +1199,8 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp) psp->api_mask |= (1 << __DRI_API_GLES); if (intelScreen->max_gl_es2_version > 0) psp->api_mask |= (1 << __DRI_API_GLES2); + if (intelScreen->max_gl_es2_version >= 30) + psp->api_mask |= (1 << __DRI_API_GLES3); psp->extensions = intelScreenExtensions; -- 2.30.2