[PATCH 0/4] drm/ast: cursor: Improve format handling
Thomas Zimmermann
tzimmermann at suse.de
Thu Feb 13 16:25:45 UTC 2025
A number of generally useful updates to the cursor code.
The cursor code performs format conversion to the hardware's ARGB444
format and calculation of a checksum in a single function. Patch 1
splits this into two steps. Patch 2 then implements the format
conversion with DRM's format helpers. Other drivers can now reuse
the code.
With the format handling separated, patch 3 adds support for
ARGB4444, which is the hardware's native format.
Patch 4 moves cursor handling into a separate source file.
Tested on AST2600.
Thomas Zimmermann (4):
drm/ast: cursor: Calculate checksum in helper
drm/ast: cursor: Move format conversion to shared helper
drm/ast: cursor: Add support for ARGB4444
drm/ast: cursor: Move implementation to separate source file
drivers/gpu/drm/ast/Makefile | 1 +
drivers/gpu/drm/ast/ast_cursor.c | 306 ++++++++++++++++++++++++++++
drivers/gpu/drm/ast/ast_drv.h | 41 ++--
drivers/gpu/drm/ast/ast_mode.c | 273 +------------------------
drivers/gpu/drm/drm_format_helper.c | 69 +++++++
include/drm/drm_format_helper.h | 3 +
6 files changed, 415 insertions(+), 278 deletions(-)
create mode 100644 drivers/gpu/drm/ast/ast_cursor.c
--
2.48.1
More information about the dri-devel
mailing list