Skip to content

vbo/dlist: cleanup and reduce video memory usage

Pierre-Eric Pelloux-Prayer requested to merge pepp/mesa:vbo_vram_usage into main

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)

vram

The graph is based on the trace attached to #6140 (closed).

Edited by Pierre-Eric Pelloux-Prayer

Merge request reports

Loading