[Mesa-dev] [RFC 0/4] Compute version during _mesa_initialize_context

Jordan Justen jordan.l.justen at intel.com
Wed Nov 14 10:32:18 PST 2012


Within _mesa_initialize_context the call to _mesa_create_exec_table
now depends on ctx->Version being set. (For GLES3 support.)

This series adds a driver callback function that allows each driver
to enable features that are significant for computing to version.

Now _mesa_initialize_context will:
 * basic context init
 * call driver.InitializeVersionFeatures
 * compute version
 * initialize dispatch tables, etc.

v1:
 * Implement support for swrast & i965 drivers

Jordan Justen (4):
  mesa: add driver callback "InitializeVersionFeatures"
  swrast: add InitializeVersionFeatures driver function
  intel/i965: add InitializeVersionFeatures driver function
  mesa: compute version in _mesa_initialize_context

 src/mesa/drivers/common/driverfuncs.c      |    1 +
 src/mesa/drivers/dri/i965/brw_context.c    |   23 +++++++--
 src/mesa/drivers/dri/intel/intel_context.c |   18 ++++---
 src/mesa/drivers/dri/intel/intel_context.h |    3 ++
 src/mesa/drivers/dri/swrast/swrast.c       |   74 +++++++++++++++-------------
 src/mesa/main/context.c                    |   13 ++++-
 src/mesa/main/dd.h                         |    6 +++
 7 files changed, 92 insertions(+), 46 deletions(-)
 mode change 100644 => 100755 src/mesa/drivers/dri/intel/intel_context.c

-- 
1.7.9.5



More information about the mesa-dev mailing list