mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 01:20:38 +07:00
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: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20190905070509.22407-7-kraxel@redhat.com
This commit is contained in:
parent
e7bf74d0aa
commit
133e880952
@ -325,7 +325,7 @@ int qxl_ttm_init(struct qxl_device *qdev)
|
||||
r = ttm_bo_device_init(&qdev->mman.bdev,
|
||||
&qxl_bo_driver,
|
||||
qdev->ddev.anon_inode->i_mapping,
|
||||
NULL,
|
||||
qdev->ddev.vma_offset_manager,
|
||||
false);
|
||||
if (r) {
|
||||
DRM_ERROR("failed initializing buffer object driver(%d).\n", r);
|
||||
|
Loading…
Reference in New Issue
Block a user