Skip to content
Commit 4aecbdf2 authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Rajeshkumar Ramasamy
Browse files

drm/format-helper: Rework format-helper conversion functions

commit 90cf67126f8576f49f5bff2425cbe534a2637832 from
https://nv-tegra.nvidia.com/r/3rdparty/canonical/linux-jammy.git

 jetson_36.3

Move destination-buffer clipping from all format-helper conversion
functions into callers. Support destination-buffer pitch. Only
distinguish between system and I/O memory, but use same logic
everywhere.

Simply harmonize the interface and semantics of the existing code.
Not all conversion helpers support all combinations of parameters.
We have to add additional features when we need them.

v2:
	* fix default destination pitch in drm_fb_xrgb8888_to_gray8()
	  (Noralf)

Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Tested-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Reviewed-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110103702.374-5-tzimmermann@suse.de


(cherry picked from commit 53bc2098)
Change-Id: I8df4f5b52868d84dfa6678a50781233fca442066
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/3rdparty/canonical/linux-jammy/+/2985826


Reviewed-by: default avatarsvcacv <svcacv@nvidia.com>
Reviewed-by: default avatarJonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Signed-off-by: default avatarRajeshkumar Ramasamy <rajeshkumar.ramasamy@windriver.com>
parent 9a626328
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment