Mesa (master): intel: Expose support for DRI_API_GLES3

Ian Romanick idr at kemper.freedesktop.org
Tue Jan 15 22:05:45 UTC 2013


Module: Mesa
Branch: master
Commit: 26f9faa04b4e924bc8e1fc35a5d75179063764e6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=26f9faa04b4e924bc8e1fc35a5d75179063764e6

Author: Chad Versace <chad.versace at linux.intel.com>
Date:   Wed Nov 21 16:55:43 2012 -0800

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 <chad.versace at linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/drivers/dri/intel/intel_screen.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index d88c119..659a2e6 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;
 




More information about the mesa-commit mailing list