From: Chad Versace Date: Thu, 22 Nov 2012 00:55:43 +0000 (-0800) Subject: intel: Expose support for DRI_API_GLES3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26f9faa04b4e924bc8e1fc35a5d75179063764e6;p=mesa.git 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 --- 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;