mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 02:22:28 -04:00
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>
This commit is contained in:
committed by
Juergen Gross
parent
6f92337b6b
commit
585c6ed738
@@ -210,7 +210,8 @@ xen_drm_front_gem_import_sg_table(struct drm_device *dev,
|
||||
|
||||
ret = xen_drm_front_dbuf_create(drm_info->front_info,
|
||||
xen_drm_front_dbuf_to_cookie(&xen_obj->base),
|
||||
0, 0, 0, size, xen_obj->pages);
|
||||
0, 0, 0, size, sgt->sgl->offset,
|
||||
xen_obj->pages);
|
||||
if (ret < 0)
|
||||
return ERR_PTR(ret);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user