freedreno: don't reuse exported buffers

Signed-off-by: Rob Clark <robclark@freedesktop.org>
main
Rob Clark 2015-08-29 12:49:28 -04:00 committed by Rob Clark
parent c349616763
commit 691d14c9a8
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}