mesa: Changes to 'master'

Kristian Høgsberg krh at kemper.freedesktop.org
Mon Mar 31 20:58:25 UTC 2008


The branch, master has been updated
        Commits at: http://cgit.freedesktop.org/mesa/mesa/log/?h=master

Summary of changes:
 configs/autoconf.in                            |    1 +
 configure.ac                                   |    1 +
 include/GL/internal/dri_interface.h            |  413 ++++++++++----------
 include/GL/internal/dri_sarea.h                |    7 +-
 src/glx/x11/Makefile                           |    5 +-
 src/glx/x11/dri2.c                             |  252 ++++++++++++
 src/glx/x11/dri2.h                             |   53 +++
 src/glx/x11/dri2_glx.c                         |  471 ++++++++++++++++++++++
 src/glx/x11/dri_glx.c                          |  398 ++++++++++++++-----
 src/glx/x11/glx_pbuffer.c                      |   70 ++++-
 src/glx/x11/glxclient.h                        |   38 ++-
 src/glx/x11/glxcmds.c                          |  140 ++++---
 src/glx/x11/glxext.c                           |   66 ++--
 src/glx/x11/glxextensions.c                    |   62 +---
 src/glx/x11/glxextensions.h                    |    6 +-
 src/mesa/drivers/dri/common/dri_util.c         |  501 +++++++++++++++---------
 src/mesa/drivers/dri/common/dri_util.h         |  122 +++---
 src/mesa/drivers/dri/common/utils.c            |   75 +++-
 src/mesa/drivers/dri/common/utils.h            |   12 +-
 src/mesa/drivers/dri/ffb/ffb_xmesa.c           |   85 ++---
 src/mesa/drivers/dri/gamma/gamma_xmesa.c       |    2 +-
 src/mesa/drivers/dri/i810/i810screen.c         |  167 ++------
 src/mesa/drivers/dri/intel/intel_context.c     |   86 ++--
 src/mesa/drivers/dri/intel/intel_screen.c      |  111 +++---
 src/mesa/drivers/dri/intel/intel_tex_image.c   |   11 +-
 src/mesa/drivers/dri/mach64/mach64_screen.c    |  165 +++------
 src/mesa/drivers/dri/mga/mga_xmesa.c           |   89 ++---
 src/mesa/drivers/dri/nouveau/nouveau_screen.c  |  123 +++----
 src/mesa/drivers/dri/r128/r128_screen.c        |   93 ++---
 src/mesa/drivers/dri/r200/r200_texstate.c      |    4 +-
 src/mesa/drivers/dri/r300/r300_texstate.c      |    4 +-
 src/mesa/drivers/dri/radeon/radeon_screen.c    |  120 +++----
 src/mesa/drivers/dri/s3v/s3v_xmesa.c           |   48 +--
 src/mesa/drivers/dri/savage/savage_xmesa.c     |  102 ++----
 src/mesa/drivers/dri/sis/sis_screen.c          |   93 ++---
 src/mesa/drivers/dri/tdfx/tdfx_screen.c        |   62 ++--
 src/mesa/drivers/dri/trident/trident_context.c |   28 +-
 src/mesa/drivers/dri/unichrome/via_screen.c    |   80 ++---
 38 files changed, 2505 insertions(+), 1661 deletions(-)
 create mode 100644 src/glx/x11/dri2.c
 create mode 100644 src/glx/x11/dri2.h
 create mode 100644 src/glx/x11/dri2_glx.c

       via  e82dd8c6e1fa2fff5b960de26961080ba5e9651d (commit)
      from  63d8a8417d68365cd10c11178516378411c09f87 (commit)


- Commits -----------------------------------------------
commit e82dd8c6e1fa2fff5b960de26961080ba5e9651d
Author: Kristian Høgsberg <krh at redhat.com>
Date:   Wed Mar 26 19:26:59 2008 -0400

    DRI interface changes and DRI2 direct rendering support.
    
    Add DRI2 direct rendering support to libGL and add DRI2 client side
    protocol code.  Extend the GLX 1.3 create drawable functions in
    glx_pbuffer.c to call into the DRI driver when possible.
    
    Introduce __DRIconfig, opaque struct that represents a DRI driver
    configuration.  Get's rid of the open coded __GLcontextModes in the
    DRI driver interface and the context modes create and destroy
    functions that the loader was requires to provide.  glcore.h is no
    longer part of the DRI driver interface.  The DRI config is GL binding
    agnostic, that is, not specific to GLX, EGL or other bindings.
    
    The core API is now also an extension, and the driver exports a list
    of extensions as the symbol __driDriverExtensions, which the loader
    must dlsym() for.  The list of extension will always include the DRI
    core extension, which allows creating and manipulating DRI screens,
    drawables and contexts.  The DRI legacy extension, when available,
    provides alternative entry points for creating the DRI objects that
    work with the XF86DRI infrastructure.
    
    Change DRI2 client code to not use drm drawables or contexts.  We
    never used drm_drawable_t's and the only use for drm_context_t was as
    a unique identifier when taking the lock.  We now just allocate a
    unique lock ID out of the DRILock sarea block.  Once we get rid of the
    lock entirely, we can drop this hack.
    
    Change the interface between dri_util.c and the drivers, so that the
    drivers now export the DriverAPI struct as driDriverAPI instead of the
    InitScreen entry point.  This lets us avoid dlsym()'ing for the DRI2
    init screen function to see if DRI2 is supported by the driver.

---------------------------------




More information about the mesa-commit mailing list