diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-11-26 12:40:08 +0300 |
|---|---|---|
| committer | Thomas Zimmermann <tzimmermann@suse.de> | 2025-12-01 10:40:18 +0300 |
| commit | 1e759ed22a62680c79aab266d73baaa2bee4de9f (patch) | |
| tree | 12e75b9d5efb8a8ad1b88d66d22809deeda878bd /include/linux | |
| parent | e85e9ccf3f8404007f62dff9a02273fcdeb44206 (diff) | |
| download | linux-1e759ed22a62680c79aab266d73baaa2bee4de9f.tar.xz | |
drm/ast: Move cursor format conversion into helper function
Move the format conversion of the cursor framebuffer into the new
helper ast_cursor_plane_get_argb4444(). It returns a buffer in system
memory, which the atomic_update handler copies to video memory.
The returned buffer is either the GEM buffer itself, or a temporary
copy within the plane in ARGB4444 format.
As a small change, list supported formats explicitly in the switch
statement. Do not assume ARGB8888 input by default. The cursor
framebuffer knows its format, so should we.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patch.msgid.link/20251126094626.41985-2-tzimmermann@suse.de
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
