diff options
author | Mathias Fröhlich <[email protected]> | 2018-02-03 17:19:24 +0100 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2018-02-23 05:33:46 +0100 |
commit | 6002ab564bfb643d5e9fd1b8c3c7c45384de570a (patch) | |
tree | 2b85efeeb9378b6f3b798733bca9cec121eab987 /src/mesa/vbo/vbo_private.h | |
parent | 08c7474189da25729e4e0bc8755b676e13c2c2c8 (diff) |
vbo: Implement method to track the inputs array.
Provided the _DrawVAO and the derived state that is maintained if we have
the _DrawVAO set, implement a method to incrementally update the array of
gl_vertex_array input pointers.
v2: Add some more comments.
Rename _vbo_array_init to _vbo_init_inputs.
Rename vbo_context::arrays to vbo_context::draw_arrays.
Signed-off-by: Mathias Fröhlich <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_private.h')
-rw-r--r-- | src/mesa/vbo/vbo_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_private.h b/src/mesa/vbo/vbo_private.h index 49922892e5e..2fda06dec68 100644 --- a/src/mesa/vbo/vbo_private.h +++ b/src/mesa/vbo/vbo_private.h @@ -44,6 +44,8 @@ struct _mesa_prim; struct vbo_context { struct gl_vertex_array currval[VBO_ATTRIB_MAX]; + /* The array of inputs used for _DrawVAO draws. */ + struct vbo_inputs draw_arrays; struct vbo_exec_context exec; struct vbo_save_context save; |