intel: Expose support for DRI_API_GLES3
authorChad Versace <chad.versace@linux.intel.com>
Thu, 22 Nov 2012 00:55:43 +0000 (16:55 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Jan 2013 21:45:54 +0000 (13:45 -0800)
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 <chad.versace@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_screen.c

index d88c119f427c32d3768f4e4992eef5ea84bccb02..659a2e63b845f0ae09f2a758b6b0663e3852c411 100644 (file)
@@ -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;