mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
drm/ast: cursor: Drop page alignment
The cursor scanout address requires alignment to a multiple of 8, but does not require page alignment. Change the offset calculation accordingly. Frees up a few more bytes for the primary framebuffer. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250305163207.267650-8-tzimmermann@suse.de
This commit is contained in:
parent
e5f953b8ea
commit
c6a84bc969
|
|
@ -58,7 +58,7 @@ long ast_cursor_vram_offset(struct ast_device *ast)
|
|||
if (size > ast->vram_size)
|
||||
return -EINVAL;
|
||||
|
||||
return PAGE_ALIGN_DOWN(ast->vram_size - size);
|
||||
return ALIGN_DOWN(ast->vram_size - size, SZ_8);
|
||||
}
|
||||
|
||||
static u32 ast_cursor_calculate_checksum(const void *src, unsigned int width, unsigned int height)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user