freedreno: add API to get drm fd from fd_device
[platform/upstream/libdrm.git] / freedreno / freedreno_device.c
index 3bc4cb2..ddb9545 100644 (file)
@@ -160,3 +160,8 @@ void fd_device_del(struct fd_device *dev)
        fd_device_del_impl(dev);
        pthread_mutex_unlock(&table_lock);
 }
+
+int fd_device_fd(struct fd_device *dev)
+{
+       return dev->fd;
+}