[Mesa-dev] [PATCH v3 0/6] Support Desktop GL Core contexts

Jordan Justen jordan.l.justen at intel.com
Fri Jul 27 14:07:21 PDT 2012


These patches introduce a MESA API type of API_OPENGL_CORE,
which will not support legacy/non-CORE features. The intended
usage will be with contexts for Desktop GL >= 3.1.

The series will currently cause legacy/non-CORE functions
to generate a GL_INVALID_OPERATION error if an API_OPENGL_CORE
context is created.

Since MESA currently cannot create a context of API_OPENGL_CORE,
this series should not actually change the behaviour of MESA.
Future changesets will add the ability to create API_OPENGL_CORE
contexts.

This series also does not address deprecated enums usage or
extensions for CORE contexts.

v3:
 * IS_CTX_DESKTOP_GL => _mesa_is_desktop_gl
 * IS_CTX_GLES => _mesa_is_gles
 * Add a few comments to point out GL Legacy as
   distinct from GL Core

v2:
 * Decompose patches further
 * Drop DRI changes
 * Drop state_tracker changes
 * Drop MESA_GL_API_OVERRIDE variable

v1:
 * Add CORE API type
 * Alter code paths to generate errors for legacy functions
 * Add MESA_GL_API_OVERRIDE variable

Jordan Justen (6):
  mesa: add API_OPENGL_CORE api
  mesa: add api check functions
  mesa: add support for using API_OPENGL_CORE
  glsl: add support for using API_OPENGL_CORE
  meta: add support for using API_OPENGL_CORE
  intel: add support for using API_OPENGL_CORE

 src/glsl/glsl_parser_extras.cpp               |   14 +-
 src/mesa/drivers/common/meta.c                |    2 +-
 src/mesa/drivers/dri/intel/intel_extensions.c |    2 +-
 src/mesa/main/api_exec.c                      |  227 +++++++++++++++----------
 src/mesa/main/api_exec.h                      |    3 +-
 src/mesa/main/api_validate.c                  |    1 +
 src/mesa/main/context.c                       |    8 +-
 src/mesa/main/extensions.c                    |    4 +-
 src/mesa/main/fbobject.c                      |   14 +-
 src/mesa/main/get.c                           |   11 +-
 src/mesa/main/getstring.c                     |    1 +
 src/mesa/main/mtypes.h                        |   24 ++-
 src/mesa/main/texformat.c                     |    2 +-
 src/mesa/main/teximage.c                      |    2 +-
 src/mesa/main/varray.c                        |    2 +-
 src/mesa/main/version.c                       |    1 +
 src/mesa/main/vtxfmt.c                        |  171 ++++++++++---------
 17 files changed, 291 insertions(+), 198 deletions(-)

-- 
1.7.9.5



More information about the mesa-dev mailing list