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

drm: virtio-gpu: transfer dumb buffers to host on plane update

For dumb buffers, we need to transfer them to the host when updating a
plane.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Rob Herring and committed by
Dave Airlie
4109e7f7 bd17d1c7

+7
+7
drivers/gpu/drm/virtio/virtgpu_plane.c
··· 72 72 vgfb = to_virtio_gpu_framebuffer(plane->state->fb); 73 73 bo = gem_to_virtio_gpu_obj(vgfb->obj); 74 74 handle = bo->hw_res_handle; 75 + if (bo->dumb) { 76 + virtio_gpu_cmd_transfer_to_host_2d 77 + (vgdev, handle, 0, 78 + cpu_to_le32(plane->state->crtc_w), 79 + cpu_to_le32(plane->state->crtc_h), 80 + plane->state->crtc_x, plane->state->crtc_y, NULL); 81 + } 75 82 } else { 76 83 handle = 0; 77 84 }