projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a11bd1
)
drm/ast: Fix invalid usage of AST_MAX_HWC_WIDTH in cursor atomic_check
author
Thomas Zimmermann
<tzimmermann@suse.de>
Tue, 9 Feb 2021 13:46:24 +0000
(14:46 +0100)
committer
Thomas Zimmermann
<tzimmermann@suse.de>
Wed, 17 Feb 2021 11:39:54 +0000
(12:39 +0100)
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
drivers/gpu/drm/ast/ast_mode.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ast/ast_mode.c
b/drivers/gpu/drm/ast/ast_mode.c
index
988b270
..
758c69a
100644
(file)
--- 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. */