vbo/dlist: use a shared index buffer
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 7 Dec 2020 16:34:18 +0000 (17:34 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 5 Jan 2021 08:51:56 +0000 (09:51 +0100)
commit4c751ad67aa2bbde5897030495f86e31c9e1fda7
tree2a4a061763e7c56693e64fc56e6ba08f9cc40aee
parenta0314083be59e9c8cc6b467d77f5ba91436b63d6
vbo/dlist: use a shared index buffer

Draws can be merged by u_threaded if they share the same IB.

This improves performance in SPECviewperf13 snx-03: tests fps
are improved by a 1.2x - 2.0x factor.

v2: reworked error handling

Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v2)
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com> (v2)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8111>
src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_save.c
src/mesa/vbo/vbo_save.h
src/mesa/vbo/vbo_save_api.c