Commit 133e8809 authored by Gerd Hoffmann's avatar Gerd Hoffmann

drm/qxl: switch to gem vma offset manager

Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it
instead of its own embedded struct.  This makes some gem functions
(specifically drm_gem_object_lookup) work on ttm objects.
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20190905070509.22407-7-kraxel@redhat.com
parent e7bf74d0
...@@ -325,7 +325,7 @@ int qxl_ttm_init(struct qxl_device *qdev) ...@@ -325,7 +325,7 @@ int qxl_ttm_init(struct qxl_device *qdev)
r = ttm_bo_device_init(&qdev->mman.bdev, r = ttm_bo_device_init(&qdev->mman.bdev,
&qxl_bo_driver, &qxl_bo_driver,
qdev->ddev.anon_inode->i_mapping, qdev->ddev.anon_inode->i_mapping,
NULL, qdev->ddev.vma_offset_manager,
false); false);
if (r) { if (r) {
DRM_ERROR("failed initializing buffer object driver(%d).\n", r); DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment