]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit966c4ac79ca26faf1d158a7ed7283a13fbe1d572
treef810d8ad1537573a2db82851a21eb2f78f6ae5c8
parentc7f3da28ac7636302607495caca43ca0be51bfaa
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