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

For ease of implementation, existing line-conversion functions
for 8-bit formats write each pixel individually. Optimize the
performance by writing multiple pixels in a single 32-bit store.

v2:
- simplify address calculation (Jani)
- fix typo in commit message (Jocelyn)

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