From 84f156c0cbf0deb0f51163dc3fd6b09a62270c50 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Tue, 6 Sep 2016 14:43:00 +0200 Subject: gallium/pipebuffer: add pb_slab utility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a simple framework for slab allocation from buffers that fits into the buffer management scheme of the radeon and amdgpu winsyses where bufmgrs aren't used. The utility knows about different sized allocations and explicitly manages reclaim of allocations that have pending fences. It manages all the free lists but does not actually touch buffer objects directly, relying on callbacks for that. Reviewed-by: Marek Olšák --- src/gallium/auxiliary/Makefile.sources | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/auxiliary/Makefile.sources') diff --git a/src/gallium/auxiliary/Makefile.sources b/src/gallium/auxiliary/Makefile.sources index f8954c90407..ed9eaa87df3 100644 --- a/src/gallium/auxiliary/Makefile.sources +++ b/src/gallium/auxiliary/Makefile.sources @@ -95,6 +95,8 @@ C_SOURCES := \ pipebuffer/pb_bufmgr_slab.c \ pipebuffer/pb_cache.c \ pipebuffer/pb_cache.h \ + pipebuffer/pb_slab.c \ + pipebuffer/pb_slab.h \ pipebuffer/pb_validate.c \ pipebuffer/pb_validate.h \ postprocess/filters.h \ -- cgit v1.2.3