diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 13:20:16 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-28 14:24:53 +0100 |
commit | 182e7f96f0cb7878d7e001cf9176aae56283f233 (patch) | |
tree | 25372f7df03df241c2b21af3364aed2ec389d134 /drivers/gpu/drm/qxl | |
parent | 13aff184ed9f651f80e7dc8be1e1b457a5d38134 (diff) | |
download | linux-182e7f96f0cb7878d7e001cf9176aae56283f233.tar.gz linux-182e7f96f0cb7878d7e001cf9176aae56283f233.tar.bz2 linux-182e7f96f0cb7878d7e001cf9176aae56283f233.zip |
drm/qxl: implement qxl_gem_prime_(un)pin
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-20-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_prime.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_prime.c b/drivers/gpu/drm/qxl/qxl_prime.c index 708378844c02..22e1faf0473a 100644 --- a/drivers/gpu/drm/qxl/qxl_prime.c +++ b/drivers/gpu/drm/qxl/qxl_prime.c @@ -22,6 +22,7 @@ * Authors: Andreas Pokorny */ +#include "qxl_drv.h" #include "qxl_object.h" /* Empty Implementations as there should not be any other driver for a virtual @@ -29,13 +30,16 @@ int qxl_gem_prime_pin(struct drm_gem_object *obj) { - WARN_ONCE(1, "not implemented"); - return -ENOSYS; + struct qxl_bo *bo = gem_to_qxl_bo(obj); + + return qxl_bo_pin(bo); } void qxl_gem_prime_unpin(struct drm_gem_object *obj) { - WARN_ONCE(1, "not implemented"); + struct qxl_bo *bo = gem_to_qxl_bo(obj); + + qxl_bo_unpin(bo); } struct sg_table *qxl_gem_prime_get_sg_table(struct drm_gem_object *obj) |