]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: cursor: Calculate checksum in helper
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 17 Feb 2025 12:22:04 +0000 (13:22 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 20 Feb 2025 07:38:32 +0000 (08:38 +0100)
commit6ec054a52d92fd172560996e3b2a4234a31f5265
treee93c50564d40cf5780712bd23a79200081c6b17e
parentf56b6db3e5e432fd0c82ab231572f92a159b5d34
drm/ast: cursor: Calculate checksum in helper

Setting the cursor image requires a 32-bit checksum of the cursor
image data. The current cursor code converts the image to ARGB4444
format and computes the checksum in a single step. Moving the
checksum calculation into a separate helper will allow to move the
format conversion into a shared helper.

v2:
- don't loop for checksum'ing final pixel (Jocelyn)
- fix typo in commit message (Jocelyn)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250217122336.230067-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c