diff options
author | Gerd Hoffmann | 2019-09-12 13:46:27 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2019-09-13 09:11:56 +0200 |
commit | 88c5a5a021aa2aba5f6ae5f64c0f2b8f785192d4 (patch) | |
tree | 7e0252e0f41c6393e1120a762060071d63198bf7 /drivers/gpu | |
parent | abddeb7b12b012f0107928e184d6cba074229349 (diff) |
drm/virtio: enable prime mmap support
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190912114627.20176-1-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c index 977aebf516a8..a5cb58754f7d 100644 --- a/drivers/gpu/drm/virtio/virtgpu_drv.c +++ b/drivers/gpu/drm/virtio/virtgpu_drv.c @@ -199,6 +199,7 @@ static struct drm_driver driver = { #endif .prime_handle_to_fd = drm_gem_prime_handle_to_fd, .prime_fd_to_handle = drm_gem_prime_fd_to_handle, + .gem_prime_mmap = drm_gem_prime_mmap, .gem_prime_import_sg_table = virtgpu_gem_prime_import_sg_table, .gem_create_object = virtio_gpu_create_object, |