drm/format-helper: Export drm_fb_clip_offset()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Nov 2021 10:36:54 +0000 (11:36 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 11 Nov 2021 11:06:57 +0000 (12:06 +0100)
commit452290f354f04fca53cba810bd241f4307502f1e
treeab62669fb391955b49bf52a083d9318dfa5b772f
parent396d9b9a48723995416a05f0dab80c1dd6c21e80
drm/format-helper: Export drm_fb_clip_offset()

Provide a function that computes the offset into a blit destination
buffer. This will allow to move destination-buffer clipping into the
format-helper callers.

v4:
* add missing '@' for parameter documentation
* fix typo 'frambuffer'
v2:
* provide documentation (Sam)
* return 'unsigned int' (Sam, Noralf)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110103702.374-2-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c
include/drm/drm_format_helper.h