[Mesa-dev] [PATCH 4/5] (gles3) intel: Expose support for DRI_API_GLES3

Chad Versace chad.versace at linux.intel.com
Wed Nov 21 17:43:38 PST 2012


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 at linux.intel.com>
---
 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 feca162..66a27cd 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -1191,6 +1191,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;
 
-- 
1.7.11.7



More information about the mesa-dev mailing list