dlist: implement vertices deduplication
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 16 Jul 2021 12:16:43 +0000 (14:16 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 2 Aug 2021 09:13:20 +0000 (11:13 +0200)
commitb83da28863cf427e329c4799ed39f1588affcca3
tree1f4827d606987e95c6bc46e1cff79c19d95f6fb9
parente012b34e610f2ef64ebf97227e6c16339ef14136
dlist: implement vertices deduplication

Now that the vertices attributes are in RAM, we can easily
compute their hash and compare to earlier vertices (in the
same list so they have compatible vertex_size).

We can't do that for list that will be executed using
loopback because the replay code ignore the index buffer.

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