gallium/pb_cache: add a copy of cache bufmgr independent of pb_manager
authorMarek Olšák <marek.olsak@amd.com>
Sun, 6 Dec 2015 18:38:26 +0000 (19:38 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 11 Dec 2015 14:25:12 +0000 (15:25 +0100)
commit2b396eeed983ae35d63a64bd6052aaaffda07adb
tree4ddb4216e35f1b9d7977c8e602abff1ff4ab4ad7
parent1a24f443b492972eec8f01ffb36d0ae300acd7c8
gallium/pb_cache: add a copy of cache bufmgr independent of pb_manager

This simplified (basically duplicated) version of pb_cache_manager will
allow removing some ugly hacks from radeon and amdgpu winsyses and
flatten simplify their design.

The difference is that winsyses must manually add buffers to the cache
in "destroy" functions and the cache doesn't know about the buffers before
that. The integration is therefore trivial and the impact on the winsys
design is negligible.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/pipebuffer/pb_cache.c [new file with mode: 0644]
src/gallium/auxiliary/pipebuffer/pb_cache.h [new file with mode: 0644]