[Mesa-dev] [PATCH 0/5 v2] (gles3) Add plubming for EGL_OPENGL_ES3_BIT

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


Fixes error EGL_BAD_ATTRIBUTE in the tests below on Intel Sandybridge:                                           
  * piglit egl-create-context-verify-gl-flavor, testcase OpenGL ES 3.0
  * gles3conform, revision 19700, when GL3Tests are ran with -fbo

The series lives on my es3-bit-v3 branch. It adds a new enum, __DRI_API_GLES3,
and does the needed plumbing in the EGL and DRI layers and the Intel drivers
to support EGL_OPENGL_ES3_BIT_KHR. The GLX layer and core mesa are left
untouched.

I tested the series against gen6 with piglit
egl-create-context-verify-gl-flavor. I verified that the series, other than
exposing ES3, does not change the set of exposed EGL context flavors.


v2: Only expose the ES3 bit if the hardware/driver combo is capable of
creating an ES3 context, as requested by Ian.


Chad Versace (5):
  intel: Set screen's api mask according to hw capabilities
  intel: Move validation of context version into intelInitContext
  dri: Define enum __DRI_API_GLES3
  intel: Expose support for DRI_API_GLES3
  egl/dri2: Add plumbing for EGL_OPENGL_ES3_BIT_KHR

 include/GL/internal/dri_interface.h        |   3 +-
 src/egl/drivers/dri2/egl_dri2.c            |  11 ++-
 src/egl/main/eglconfig.c                   |   1 +
 src/egl/main/eglcontext.c                  |   4 +-
 src/egl/main/eglcurrent.h                  |   1 +
 src/egl/main/eglmisc.c                     |   3 +
 src/egl/main/eglsurface.c                  |   5 +-
 src/mesa/drivers/dri/common/dri_util.c     |   1 +
 src/mesa/drivers/dri/common/drisw_util.c   |   1 +
 src/mesa/drivers/dri/i915/i830_context.c   |  20 +++--
 src/mesa/drivers/dri/i915/i830_context.h   |   6 +-
 src/mesa/drivers/dri/i915/i915_context.c   |  32 ++-----
 src/mesa/drivers/dri/i965/brw_context.c    |  47 ++--------
 src/mesa/drivers/dri/intel/intel_context.c |  56 +++++++++++-
 src/mesa/drivers/dri/intel/intel_context.h |  13 +--
 src/mesa/drivers/dri/intel/intel_screen.c  | 134 +++++++++++++++++++++--------
 src/mesa/drivers/dri/intel/intel_screen.h  |   5 ++
 17 files changed, 221 insertions(+), 122 deletions(-)

-- 
1.7.11.7



More information about the mesa-dev mailing list