Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
return screen;
}
-DRM_DRIVER_DESCRIPTOR("i965", "i915", create_screen, NULL)
+
+static const struct drm_conf_ret share_fd_ret = {
+ .type = DRM_CONF_BOOL,
+ .val.val_int = true,
+};
+
+static const struct drm_conf_ret *drm_configuration(enum drm_conf conf)
+{
+ switch (conf) {
+ case DRM_CONF_SHARE_FD:
+ return &share_fd_ret;
+ default:
+ break;
+ }
+ return NULL;
+}
+
+DRM_DRIVER_DESCRIPTOR("i965", "i915", create_screen, drm_configuration)
name, gem_name);
}
break;
-#if 0
case DRM_API_HANDLE_TYPE_FD:
{
const int fd = (int) handle->handle;
fd, height * handle->stride);
}
break;
-#endif
default:
bo = NULL;
break;