Skip to content

drm/ast: cursor: Improve format handling

Thomas Zimmermann dri-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- only minor style changes

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/ast: cursor: Calculate checksum in helperdrivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_mode.c+58 -160 replies
2/4drm/ast: cursor: Move format conversion to shared helperdrivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_mode.c drivers/gpu/drm/drm_format_helper.c +1 more+92 -550 replies
3/4drm/ast: cursor: Add support for ARGB4444drivers/gpu/drm/ast/ast_mode.c+23 -110 replies
4/4drm/ast: cursor: Move implementation to separate source filedrivers/gpu/drm/ast/Makefile drivers/gpu/drm/ast/ast_cursor.c drivers/gpu/drm/ast/ast_drv.h +1 more+330 -2810 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJocelyn Falempe
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] drm/ast: cursor: Improve format handling

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.

v2:
- only minor style changes

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    | 309 ++++++++++++++++++++++++++++
 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, 418 insertions(+), 278 deletions(-)
 create mode 100644 drivers/gpu/drm/ast/ast_cursor.c
Signature · 1 line
2.48.1