drm/format-helper: Optimize 32-to-24-bpp conversion
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 28 Mar 2025 14:15:02 +0000 (15:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 1 Apr 2025 13:35:23 +0000 (15:35 +0200)
commit58523a25cbf728695e374fd90416d9bd4a68d4c0
tree3da388d6207c8d5a1446974938f542acb56ba0e7
parenta376dcf49c391d06dad31a87e3cdfdf67fecc98d
drm/format-helper: Optimize 32-to-24-bpp conversion

For ease of implementation, existing line-conversion functions
for 24-bit formats write each byte individually. Optimize the
performance by writing 4 pixels in 3 32-bit stores.

v2:
- simplify address calculation (Jani)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250328141709.217283-7-tzimmermann@suse.de
drivers/gpu/drm/drm_format_helper.c