Skip to content

Commit ee4a92d

Browse files
committed
drm/ast: Fix invalid usage of AST_MAX_HWC_WIDTH in cursor atomic_check
Use AST_MAX_HWC_HEIGHT for setting offset_y in the cursor plane's atomic_check. The code used AST_MAX_HWC_WIDTH instead. This worked because both constants has the same value. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210209134632.12157-3-tzimmermann@suse.de
1 parent 4a11bd1 commit ee4a92d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/ast/ast_mode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ ast_cursor_plane_helper_atomic_update(struct drm_plane *plane,
688688
unsigned int offset_x, offset_y;
689689

690690
offset_x = AST_MAX_HWC_WIDTH - fb->width;
691-
offset_y = AST_MAX_HWC_WIDTH - fb->height;
691+
offset_y = AST_MAX_HWC_HEIGHT - fb->height;
692692

693693
if (state->fb != old_state->fb) {
694694
/* A new cursor image was installed. */

0 commit comments

Comments
 (0)