Mesa (master): mesa: Use VERT_ATTRIB_* indexed array in gl_array_object.

Mathias Fröhlich frohlich at kemper.freedesktop.org
Tue Nov 29 07:01:32 UTC 2011


Module: Mesa
Branch: master
Commit: 762c9766c93697af8d7fbaa729aed118789dbe8e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=762c9766c93697af8d7fbaa729aed118789dbe8e

Author: Mathias Fröhlich <Mathias.Froehlich at web.de>
Date:   Mon Oct 31 22:23:51 2011 +0100

mesa: Use VERT_ATTRIB_* indexed array in gl_array_object.

Replace the distinct struct gl_client_array members in gl_array_object by
an array of gl_client_arrays indexed by VERT_ATTRIB_*.
Renumber the vertex attributes slightly to keep the old semantics of the
distinct array members. Make use of the upper 32 bits in VERT_BIT_*.
Update all occurances of the distinct struct members with the array
equivalents.

Signed-off-by: Mathias Froehlich <Mathias.Froehlich at web.de>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/main/api_arrayelt.c  |   38 ++++++++--------
 src/mesa/main/api_validate.c  |    6 +-
 src/mesa/main/arrayobj.c      |   94 ++++++++++++++++-----------------------
 src/mesa/main/attrib.c        |   13 -----
 src/mesa/main/bufferobj.c     |   11 -----
 src/mesa/main/enable.c        |   44 +++++++++---------
 src/mesa/main/get.c           |   98 ++++++++++++++++++++--------------------
 src/mesa/main/getstring.c     |   18 ++++----
 src/mesa/main/mtypes.h        |   61 +++++++++-----------------
 src/mesa/main/nvprogram.c     |    8 ++--
 src/mesa/main/state.c         |   83 ++++++++++++++++++-----------------
 src/mesa/main/varray.c        |   98 ++++++++++++++++++-----------------------
 src/mesa/vbo/vbo_attrib.h     |   59 ++++++++++++------------
 src/mesa/vbo/vbo_exec_array.c |   41 ++---------------
 14 files changed, 287 insertions(+), 385 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=762c9766c93697af8d7fbaa729aed118789dbe8e



More information about the mesa-commit mailing list