Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+1 -1
+1 -1
drivers/gpu/drm/vboxvideo/vbox_mode.c
··· 398 398 u32 height = new_state->crtc_h; 399 399 struct drm_shadow_plane_state *shadow_plane_state = 400 400 to_drm_shadow_plane_state(new_state); 401 - struct dma_buf_map map = shadow_plane_state->map[0]; 401 + struct dma_buf_map map = shadow_plane_state->data[0]; 402 402 u8 *src = map.vaddr; /* TODO: Use mapping abstraction properly */ 403 403 size_t data_size, mask_size; 404 404 u32 flags;