projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70594e8
)
drm/mgag200: Use offset-adjusted shadow-plane mappings
author
Thomas Zimmermann
<tzimmermann@suse.de>
Tue, 3 Aug 2021 12:59:22 +0000
(14:59 +0200)
committer
Thomas Zimmermann
<tzimmermann@suse.de>
Sun, 8 Aug 2021 18:27:30 +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
mgag200.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210803125928.27780-6-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_mode.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/mgag200/mgag200_mode.c
b/drivers/gpu/drm/mgag200/mgag200_mode.c
index 6cb24a4b76b8f1cf66cb6cc8f54c1a215396b2dc..fd98e8bbc550037b6840dc750f948cfabf5014d2 100644
(file)
--- a/
drivers/gpu/drm/mgag200/mgag200_mode.c
+++ b/
drivers/gpu/drm/mgag200/mgag200_mode.c
@@
-898,7
+898,7
@@
mgag200_simple_display_pipe_enable(struct drm_simple_display_pipe *pipe,
mga_crtc_load_lut(crtc);
mgag200_enable_display(mdev);
- mgag200_handle_damage(mdev, fb, &fullscreen, &shadow_plane_state->
map
[0]);
+ mgag200_handle_damage(mdev, fb, &fullscreen, &shadow_plane_state->
data
[0]);
}
static void
@@
-959,7
+959,7
@@
mgag200_simple_display_pipe_update(struct drm_simple_display_pipe *pipe,
return;
if (drm_atomic_helper_damage_merged(old_state, state, &damage))
- mgag200_handle_damage(mdev, fb, &damage, &shadow_plane_state->
map
[0]);
+ mgag200_handle_damage(mdev, fb, &damage, &shadow_plane_state->
data
[0]);
}
static struct drm_crtc_state *