-
- Downloads
drm/ast: cursor: Move format conversion to shared helper
User-space cursor-image data is encoded in ARBG8888, while hardware supports ARGB4444. Implement the format conversion as part of the format-helper framework, so that other drivers can benefit. This allows to respect the damage area of the cursor update. In previous code, all cursor image data had to be converted on each update. Now, only the changed areas require an update. The hardware image is always updated completely, as it is required for the checksum update. The format-conversion helper still contains the old implementation's optimization of writing 2 output pixels at the same time. Signed-off-by:Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by:
Jocelyn Falempe <jfalempe@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250217122336.230067-3-tzimmermann@suse.de
Showing
- drivers/gpu/drm/ast/ast_drv.h 3 additions, 1 deletiondrivers/gpu/drm/ast/ast_drv.h
- drivers/gpu/drm/ast/ast_mode.c 17 additions, 54 deletionsdrivers/gpu/drm/ast/ast_mode.c
- drivers/gpu/drm/drm_format_helper.c 69 additions, 0 deletionsdrivers/gpu/drm/drm_format_helper.c
- include/drm/drm_format_helper.h 3 additions, 0 deletionsinclude/drm/drm_format_helper.h
Loading
Please register or sign in to comment