diff options
author | Dave Airlie <airlied@redhat.com> | 2019-05-02 19:36:24 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-05-02 19:36:31 -0400 |
commit | 1daa0449d287a109b93c4516914eddeff4baff65 (patch) | |
tree | fc9876e7d7190a43af499f2093540e3ede322248 | |
parent | 37624b58542fb9f2d9a70e6ea006ef8a5f66c30b (diff) | |
parent | ab042b824c11502bd39abfdfd4c7f285347d483a (diff) |
Merge tag 'drm-misc-fixes-2019-05-02' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
- One revert for QXL for a DRI3 breakage
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190502122529.hguztj3kncaixe3d@flea
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_drv.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_prime.c | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c index 578d867a81d5..f33e349c4ec5 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.c +++ b/drivers/gpu/drm/qxl/qxl_drv.c | |||
@@ -255,10 +255,14 @@ static struct drm_driver qxl_driver = { | |||
255 | #if defined(CONFIG_DEBUG_FS) | 255 | #if defined(CONFIG_DEBUG_FS) |
256 | .debugfs_init = qxl_debugfs_init, | 256 | .debugfs_init = qxl_debugfs_init, |
257 | #endif | 257 | #endif |
258 | .prime_handle_to_fd = drm_gem_prime_handle_to_fd, | ||
259 | .prime_fd_to_handle = drm_gem_prime_fd_to_handle, | ||
258 | .gem_prime_export = drm_gem_prime_export, | 260 | .gem_prime_export = drm_gem_prime_export, |
259 | .gem_prime_import = drm_gem_prime_import, | 261 | .gem_prime_import = drm_gem_prime_import, |
260 | .gem_prime_pin = qxl_gem_prime_pin, | 262 | .gem_prime_pin = qxl_gem_prime_pin, |
261 | .gem_prime_unpin = qxl_gem_prime_unpin, | 263 | .gem_prime_unpin = qxl_gem_prime_unpin, |
264 | .gem_prime_get_sg_table = qxl_gem_prime_get_sg_table, | ||
265 | .gem_prime_import_sg_table = qxl_gem_prime_import_sg_table, | ||
262 | .gem_prime_vmap = qxl_gem_prime_vmap, | 266 | .gem_prime_vmap = qxl_gem_prime_vmap, |
263 | .gem_prime_vunmap = qxl_gem_prime_vunmap, | 267 | .gem_prime_vunmap = qxl_gem_prime_vunmap, |
264 | .gem_prime_mmap = qxl_gem_prime_mmap, | 268 | .gem_prime_mmap = qxl_gem_prime_mmap, |
diff --git a/drivers/gpu/drm/qxl/qxl_prime.c b/drivers/gpu/drm/qxl/qxl_prime.c index 8b448eca1cd9..114653b471c6 100644 --- a/drivers/gpu/drm/qxl/qxl_prime.c +++ b/drivers/gpu/drm/qxl/qxl_prime.c | |||
@@ -42,6 +42,18 @@ void qxl_gem_prime_unpin(struct drm_gem_object *obj) | |||
42 | qxl_bo_unpin(bo); | 42 | qxl_bo_unpin(bo); |
43 | } | 43 | } |
44 | 44 | ||
45 | struct sg_table *qxl_gem_prime_get_sg_table(struct drm_gem_object *obj) | ||
46 | { | ||
47 | return ERR_PTR(-ENOSYS); | ||
48 | } | ||
49 | |||
50 | struct drm_gem_object *qxl_gem_prime_import_sg_table( | ||
51 | struct drm_device *dev, struct dma_buf_attachment *attach, | ||
52 | struct sg_table *table) | ||
53 | { | ||
54 | return ERR_PTR(-ENOSYS); | ||
55 | } | ||
56 | |||
45 | void *qxl_gem_prime_vmap(struct drm_gem_object *obj) | 57 | void *qxl_gem_prime_vmap(struct drm_gem_object *obj) |
46 | { | 58 | { |
47 | struct qxl_bo *bo = gem_to_qxl_bo(obj); | 59 | struct qxl_bo *bo = gem_to_qxl_bo(obj); |