vbo/dlist: cleanup and reduce video memory usage
The important commit here is vbo: track holes in existing bo
.
It replaces the existing logic: "try to fit VBO data in the current BO, otherwise allocate a new one" by "try to fit VBO data in any existing dlist BO, otherwise allocate a new one". This reduces memory usage a bit, as can be visible on this graph where:
- X axis: number of display lists
- Y axis: requested VRAM (blue line: with this MR, red line: main)
The graph is based on the trace attached to #6140 (closed).
Edited by Pierre-Eric Pelloux-Prayer