From: Rob Herring Date: Wed, 13 Jan 2016 21:52:08 +0000 (-0600) Subject: drm: virtio-gpu: ensure plane is flushed to host on atomic update X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bd17d1c77c2ae3bb988a256ea5bda6d405b62b56;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm: virtio-gpu: ensure plane is flushed to host on atomic update This fixes drawing updates when updating planes with atomic API. Signed-off-by: Rob Herring Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c index cad1ca49ad31..519eebd6c581 100644 --- a/drivers/gpu/drm/virtio/virtgpu_plane.c +++ b/drivers/gpu/drm/virtio/virtgpu_plane.c @@ -84,6 +84,11 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane, plane->state->crtc_h, plane->state->crtc_x, plane->state->crtc_y); + virtio_gpu_cmd_resource_flush(vgdev, handle, + plane->state->crtc_x, + plane->state->crtc_y, + plane->state->crtc_w, + plane->state->crtc_h); }