OSDN Git Service

freedreno: don't take ownership of the dmabuf fd on import
authorRob Clark <robclark@freedesktop.org>
Thu, 3 Sep 2015 18:56:02 +0000 (14:56 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 3 Sep 2015 18:56:02 +0000 (14:56 -0400)
EGL_EXT_image_dma_buf_import specifies that the importer retains
ownership of the fd, rather then the importee.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
freedreno/freedreno_bo.c

index 80ecd3a..1cb6759 100644 (file)
@@ -245,7 +245,6 @@ fd_bo_from_dmabuf(struct fd_device *dev, int fd)
        lseek(fd, 0, SEEK_CUR);
 
        bo = bo_from_handle(dev, size, handle);
-       bo->fd = fd;
 
 out_unlock:
        pthread_mutex_unlock(&table_lock);