From 691d14c9a85acd806f83664fd58bd87bd32683eb Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 29 Aug 2015 12:49:28 -0400 Subject: freedreno: don't reuse exported buffers Signed-off-by: Rob Clark --- freedreno/freedreno_bo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'freedreno') diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c index 1cb67595..fee32fca 100644 --- a/freedreno/freedreno_bo.c +++ b/freedreno/freedreno_bo.c @@ -371,6 +371,7 @@ int fd_bo_get_name(struct fd_bo *bo, uint32_t *name) pthread_mutex_lock(&table_lock); set_name(bo, req.name); pthread_mutex_unlock(&table_lock); + bo->bo_reuse = 0; } *name = bo->name; @@ -395,6 +396,7 @@ int fd_bo_dmabuf(struct fd_bo *bo) } bo->fd = prime_fd; + bo->bo_reuse = 0; } return dup(bo->fd); } -- cgit v1.2.3