drm/xen-front: Pass dumb buffer data offset to the backend
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Thu, 13 Aug 2020 12:00:38 +0000 (14:00 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 13 Aug 2020 15:15:21 +0000 (17:15 +0200)
commit585c6ed738a5ed2a6fd7662fa1d82f25acfa85de
treef810d8ad1537573a2db82851a21eb2f78f6ae5c8
parent6f92337b6bffb3d9e509024d6ef5c3f2b112757d
drm/xen-front: Pass dumb buffer data offset to the backend

While importing a dmabuf it is possible that the data of the buffer
is put with offset which is indicated by the SGT offset.
Respect the offset value and forward it to the backend.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/gpu/drm/xen/xen_drm_front.c
drivers/gpu/drm/xen/xen_drm_front.h
drivers/gpu/drm/xen/xen_drm_front_gem.c