freedreno/drm: disallow exported buffers in bo cache
authorRob Clark <robdclark@chromium.org>
Tue, 19 May 2020 15:27:04 +0000 (08:27 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 25 May 2020 20:47:24 +0000 (20:47 +0000)
commitceab349483cb43b0a62895a3657049d4045ad324
tree37df3d5fbcf91442861ab5fddd1a1a7e1f6701f5
parent1241f8cb4c9c6cc65106a085be81963f3505a7d5
freedreno/drm: disallow exported buffers in bo cache

Otherwise we can MADVISE(WONTNEED) a bo that someone else is still
using.  We already handled that in the dma-buf and flink-name export
paths.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5204>
src/freedreno/drm/freedreno_bo.c