Re: [Mesa-dev] [PATCH 02/14] gallium/pipebuffer: add pb_slab utility

2016-09-18 Thread Marek Olšák
Please add comments explaining all members of structures and all non-trivial functions. For example, it's not really clear why deinit calls reclaim. Thanks, Marek On Tue, Sep 13, 2016 at 11:56 AM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > This is a simple framework for slab allocation fr

[Mesa-dev] [PATCH 02/14] gallium/pipebuffer: add pb_slab utility

2016-09-13 Thread Nicolai Hähnle
From: Nicolai Hähnle 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 pe