vbo: Try to reuse the same VAO more often for successive dlists.
authorMathias Fröhlich <mathias.froehlich@web.de>
Wed, 28 Feb 2018 07:31:44 +0000 (08:31 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Sat, 3 Mar 2018 04:56:35 +0000 (05:56 +0100)
commit411aa8c322f6703b20d32c7c263fd7ea8639cf3f
treec0f48980c38b1123960f7f4d3c11ac44621ac4f7
parenta9eb455e297d227bc4ca423e8470ed897d82b57b
vbo: Try to reuse the same VAO more often for successive dlists.

The change tries to catch more opportunities to reuse the same set
of VAO's when building up display lists. Instead of checking the
offset with respect to the beginning of the vertex buffer object
the change tries to apply this same optimization with respect to the
previous display list node.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/mesa/vbo/vbo_save_api.c