Mesa (master): freedreno/drm: disallow exported buffers in bo cache
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 25 22:48:57 UTC 2020
Module: Mesa
Branch: master
Commit: ceab349483cb43b0a62895a3657049d4045ad324
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ceab349483cb43b0a62895a3657049d4045ad324
Author: Rob Clark <robdclark at chromium.org>
Date: Tue May 19 08:27:04 2020 -0700
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 at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5204>
---
src/freedreno/drm/freedreno_bo.c | 1 +
1 file changed, 1 insertion(+)
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;
}
More information about the mesa-commit
mailing list