OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 6 Sep 2015 17:59:32 +0000 (18:59 +0100)
commitecdd69cd0509119adfd01c4fed512609963d0720
treef7c0dcc3ef67ba0bba467c46a2db3a7774a8cd7d
parent74fa10693227c08d227957e9544f60ee68b5762c
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>
(cherry picked from commit 35d0f12797237cdd38e7fd2c39d3c19e875875ca)
src/gallium/auxiliary/pipebuffer/pb_bufmgr.h
src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c