mesa: Use VERT_ATTRIB_* indexed array in gl_array_object.
authorMathias Fröhlich <Mathias.Froehlich@web.de>
Mon, 31 Oct 2011 21:23:51 +0000 (22:23 +0100)
committerMathias Fröhlich <Mathias.Froehlich@web.de>
Tue, 29 Nov 2011 05:37:19 +0000 (06:37 +0100)
commit762c9766c93697af8d7fbaa729aed118789dbe8e
treecff8bf8eaa64b2a47226c9f02f0e5e85c42949d0
parentdca6a28a14f22d77273d79d44f57b0d853c0242d
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@web.de>
Reviewed-by: Eric Anholt <eric@anholt.net>
14 files changed:
src/mesa/main/api_arrayelt.c
src/mesa/main/api_validate.c
src/mesa/main/arrayobj.c
src/mesa/main/attrib.c
src/mesa/main/bufferobj.c
src/mesa/main/enable.c
src/mesa/main/get.c
src/mesa/main/getstring.c
src/mesa/main/mtypes.h
src/mesa/main/nvprogram.c
src/mesa/main/state.c
src/mesa/main/varray.c
src/mesa/vbo/vbo_attrib.h
src/mesa/vbo/vbo_exec_array.c