OSDN Git Service

mesa: Make gl_vertex_array contain pointers to first order VAO members.
authorMathias Fröhlich <mathias.froehlich@web.de>
Sun, 4 Mar 2018 17:15:53 +0000 (18:15 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Sat, 10 Mar 2018 06:33:51 +0000 (07:33 +0100)
commit64d2a20480547d5897fd9d7b8fd306f2625138cb
tree15d831310fe0a2e2ff7d3c58eac8fceecc738f15
parentd62f0df3541ab9ee7a4999f0ecedc52f8d1ab8cc
mesa: Make gl_vertex_array contain pointers to first order VAO members.

Instead of keeping a copy of the vertex array content in
struct gl_vertex_array only keep pointers to the first order
information originaly in the VAO.
For that represent the current values by struct gl_array_attributes
and struct gl_vertex_buffer_binding.

v2: Change comments.
    Remove gl... prefix from variables except in the i965 directory where
    it was like that before. Reindent because of that.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
27 files changed:
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/genX_state_upload.c
src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
src/mesa/main/arrayobj.c
src/mesa/main/attrib.c
src/mesa/main/mtypes.h
src/mesa/main/varray.c
src/mesa/main/varray.h
src/mesa/state_tracker/st_atom.c
src/mesa/state_tracker/st_atom_array.c
src/mesa/state_tracker/st_cb_rasterpos.c
src/mesa/state_tracker/st_draw_feedback.c
src/mesa/tnl/t_draw.c
src/mesa/tnl/t_rebase.c
src/mesa/tnl/t_rebase.h
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_context.c
src/mesa/vbo/vbo_exec.c
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_private.h
src/mesa/vbo/vbo_save_draw.c
src/mesa/vbo/vbo_split.c
src/mesa/vbo/vbo_split.h
src/mesa/vbo/vbo_split_copy.c
src/mesa/vbo/vbo_split_inplace.c