Commit 0c64f2f3 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/vbox: Use offset-adjusted shadow-plane mappings

For framebuffers with non-zero offset fields, shadow-plane helpers
provide a pointer to the first byte of the contained data. Use it in
vbox.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210803125928.27780-11-tzimmermann@suse.de
parent e5cf6fd4
...@@ -398,7 +398,7 @@ static void vbox_cursor_atomic_update(struct drm_plane *plane, ...@@ -398,7 +398,7 @@ static void vbox_cursor_atomic_update(struct drm_plane *plane,
u32 height = new_state->crtc_h; u32 height = new_state->crtc_h;
struct drm_shadow_plane_state *shadow_plane_state = struct drm_shadow_plane_state *shadow_plane_state =
to_drm_shadow_plane_state(new_state); to_drm_shadow_plane_state(new_state);
struct dma_buf_map map = shadow_plane_state->map[0]; struct dma_buf_map map = shadow_plane_state->data[0];
u8 *src = map.vaddr; /* TODO: Use mapping abstraction properly */ u8 *src = map.vaddr; /* TODO: Use mapping abstraction properly */
size_t data_size, mask_size; size_t data_size, mask_size;
u32 flags; u32 flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment