swr: [rasterizer] Put in rudimentary garbage collection for the global arena allocator
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 31 Mar 2016 01:24:32 +0000 (19:24 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 12 Apr 2016 16:52:05 +0000 (11:52 -0500)
commit06c59dc417661cda41b50aa57656a848434acbb4
tree5f6176257a8764e99fb0b568123cbcc5b37d3410
parentb990483de21cd99a94a098bb0eb397ba86b7b2a6
swr: [rasterizer] Put in rudimentary garbage collection for the global arena allocator

- Check for unused blocks every few frames or every 64K draws
- Delete data unused since the last check if total unused data is > 20MB

Doesn't seem to cause a perf degridation

Acked-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp
src/gallium/drivers/swr/rasterizer/core/arena.h
src/gallium/drivers/swr/rasterizer/core/context.h