mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20210803125928.27780-11-tzimmermann@suse.de
This commit is contained in:
parent
e5cf6fd4d7
commit
0c64f2f3c8
@ -398,7 +398,7 @@ static void vbox_cursor_atomic_update(struct drm_plane *plane,
|
||||
u32 height = new_state->crtc_h;
|
||||
struct drm_shadow_plane_state *shadow_plane_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 */
|
||||
size_t data_size, mask_size;
|
||||
u32 flags;
|
||||
|
Loading…
Reference in New Issue
Block a user