projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43b3623
)
drm/ast: Use offset-adjusted shadow-plane mappings
author
Thomas Zimmermann
<tzimmermann@suse.de>
Tue, 3 Aug 2021 12:59:19 +0000
(14:59 +0200)
committer
Thomas Zimmermann
<tzimmermann@suse.de>
Sun, 8 Aug 2021 18:27:06 +0000
(20:27 +0200)
For framebuffers with non-zero offset fields, shadow-plane helpers
provide a pointer to the first byte of the contained data. Use it in
ast.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210803125928.27780-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 15319967164e48d32d03a3842787e198cf82351d..6bfaefa018182e4fef3aedd7b8d62a503da5c7a6 100644
(file)
--- a/
drivers/gpu/drm/ast/ast_mode.c
+++ b/
drivers/gpu/drm/ast/ast_mode.c
@@
-808,7
+808,7
@@
ast_cursor_plane_helper_atomic_update(struct drm_plane *plane,
ast_cursor_plane->hwc[ast_cursor_plane->next_hwc_index].map;
u64 dst_off =
ast_cursor_plane->hwc[ast_cursor_plane->next_hwc_index].off;
- struct dma_buf_map src_map = shadow_plane_state->
map
[0];
+ struct dma_buf_map src_map = shadow_plane_state->
data
[0];
unsigned int offset_x, offset_y;
u16 x, y;
u8 x_offset, y_offset;