vbo/dlist: reset vertex_store::used in reset_counters
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 12 Aug 2021 13:48:55 +0000 (15:48 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 9 Sep 2021 14:42:16 +0000 (16:42 +0200)
commit6a63a4a14f71815474921360bcd24269a90fb494
tree6955ee9e2763f3fc226e9fd1412fbd3e12ce8e6f
parent3ab1ddd5c1540c1b896f546291c608bd1132da7f
vbo/dlist: reset vertex_store::used in reset_counters

This means that each list will start writing its vertices at index 0.

The previous mode (append) was useful in the past when the vertices
were written directly to a mapped-buffer object.

Now that there's an intermediate storage in RAM, the added complexity
of the append-mode has no value so drop it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12646>
src/mesa/vbo/vbo_save_api.c