gallium/pb_bufmgr_cache: add a way to remove buffers from the cache explicitly
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Sep 2015 02:07:54 +0000 (04:07 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 3 Sep 2015 16:41:40 +0000 (18:41 +0200)
commit35d0f12797237cdd38e7fd2c39d3c19e875875ca
treeb3e272b98facfcef8335b402f89a1655d6ed5033
parent44dbaa1746833f2874786fc2067f8837f149261f
gallium/pb_bufmgr_cache: add a way to remove buffers from the cache explicitly

This must be done before exporting a buffer as dmabuf fds, because
we lose track of who is using it and can't trust the reference counter.

Cc: 11.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/auxiliary/pipebuffer/pb_bufmgr.h
src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c