diff options
| author | Thomas Zimmermann <[email protected]> | 2021-02-09 13:46:24 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2021-02-17 11:39:54 +0000 |
| commit | ee4a92d690f30f3793df942939726bec0338e65b (patch) | |
| tree | a267d3625bdd53c14e0cead5da3fe65d0f90b257 | |
| parent | drm/ast: Add constants for VGACRCB register bits (diff) | |
| download | kernel-ee4a92d690f30f3793df942939726bec0338e65b.tar.gz kernel-ee4a92d690f30f3793df942939726bec0338e65b.zip | |
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 <[email protected]>
Acked-by: Gerd Hoffmann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/gpu/drm/ast/ast_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 988b270fea5e..758c69aa7232 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -688,7 +688,7 @@ ast_cursor_plane_helper_atomic_update(struct drm_plane *plane, unsigned int offset_x, offset_y; offset_x = AST_MAX_HWC_WIDTH - fb->width; - offset_y = AST_MAX_HWC_WIDTH - fb->height; + offset_y = AST_MAX_HWC_HEIGHT - fb->height; if (state->fb != old_state->fb) { /* A new cursor image was installed. */ |
