From: Rob Clark Date: Tue, 19 May 2020 15:27:04 +0000 (-0700) Subject: freedreno/drm: disallow exported buffers in bo cache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ceab349483cb43b0a62895a3657049d4045ad324;p=mesa.git 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 Part-of: --- diff --git a/src/freedreno/drm/freedreno_bo.c b/src/freedreno/drm/freedreno_bo.c index b6d5cdd9bec..862465cfe43 100644 --- a/src/freedreno/drm/freedreno_bo.c +++ b/src/freedreno/drm/freedreno_bo.c @@ -318,6 +318,7 @@ int fd_bo_get_name(struct fd_bo *bo, uint32_t *name) uint32_t fd_bo_handle(struct fd_bo *bo) { + bo->bo_reuse = NO_CACHE; return bo->handle; }