diff options
author | Mathias Fröhlich <[email protected]> | 2018-03-16 06:34:35 +0100 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2018-03-22 04:58:52 +0100 |
commit | d3c604e12e1e2ef1e562f51e529ba18bae2d9af1 (patch) | |
tree | d78452e323095b1f2054a5cad37fc8e9634a9ded /src/mesa/main/arrayobj.c | |
parent | c4c56ff303e39f55e7940b33e8afeafa80b26280 (diff) |
mesa: Update VAO internal state when setting the _DrawVAO.
Update the VAO internal state on Array._DrawVAO instead of
Array.VAO. Also the VAO internal state update gets triggered now
by a change of Array._DrawVAO instead of the _NEW_ARRAY state flag.
Also no driver looks at any VAO's NewArrays value from within
the Driver.UpdateState callback. So it should be safe to move
this update into the _mesa_set_draw_vao method.
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/main/arrayobj.c')
-rw-r--r-- | src/mesa/main/arrayobj.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 7cb98337198..0d2f7a918ac 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -461,6 +461,12 @@ _mesa_update_vao_derived_arrays(struct gl_context *ctx, { /* Make sure we do not run into problems with shared objects */ assert(!vao->SharedAndImmutable || vao->NewArrays == 0); + + /* + * Stay tuned, the next series scans for duplicate bindings in this + * function. So that drivers can easily know the minimum unique set + * of bindings. + */ } |