drm/ast: Replace ast_cursor_move() with ast_cursor_show()
Having a cursor move function is misleading, as it actually enables the cursor's image for displaying. So rename it to ast_cursor_show(). It's semantics is to show a cursor at the specified location on the screen. The displayed cursor is always the image in the cursor front BO. This change also simplifies struct ast_crtc to being a mere wrapper around around struct drm_crtc. It will be removed by a later patch. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200702115029.5281-7-tzimmermann@suse.de
This commit is contained in:
@@ -239,7 +239,6 @@ struct ast_connector {
|
||||
|
||||
struct ast_crtc {
|
||||
struct drm_crtc base;
|
||||
u8 offset_x, offset_y;
|
||||
};
|
||||
|
||||
#define to_ast_crtc(x) container_of(x, struct ast_crtc, base)
|
||||
@@ -320,6 +319,7 @@ int ast_cursor_init(struct ast_private *ast);
|
||||
void ast_cursor_fini(struct ast_private *ast);
|
||||
int ast_cursor_blit(struct ast_private *ast, struct drm_framebuffer *fb);
|
||||
void ast_cursor_page_flip(struct ast_private *ast);
|
||||
int ast_cursor_move(struct drm_crtc *crtc, int x, int y);
|
||||
int ast_cursor_show(struct ast_private *ast, int x, int y,
|
||||
unsigned int offset_x, unsigned int offset_y);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user