[Mesa-dev] [PATCH v2 0/7] Support Desktop GL Core contexts

Jordan Justen jordan.l.justen at intel.com
Thu Jul 26 23:43:32 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 for
CORE contexts.

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 (7):
  mesa: add API_OPENGL_CORE api
  mesa: add api check macros
  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
  mesa: don't enable legacy GL functions when 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                        |    7 +-
 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, 275 insertions(+), 197 deletions(-)

-- 
1.7.9.5



More information about the mesa-dev mailing list