projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7bf74d
)
drm/qxl: switch to gem vma offset manager
author
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 5 Sep 2019 07:05:07 +0000
(09:05 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 11 Sep 2019 06:03:24 +0000
(08:03 +0200)
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
drivers/gpu/drm/qxl/qxl_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_ttm.c
b/drivers/gpu/drm/qxl/qxl_ttm.c
index 69da0eea6e4c56e9f5dc505680aee5e1d0a59669..cbc6c2ba8630fd1f02212695575c9c79b39e40a1 100644
(file)
--- a/
drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/
drivers/gpu/drm/qxl/qxl_ttm.c
@@
-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);