summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/virtio
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-01-13 21:52:08 (GMT)
committerDave Airlie <airlied@redhat.com>2016-02-10 22:56:22 (GMT)
commitbd17d1c77c2ae3bb988a256ea5bda6d405b62b56 (patch)
tree38a1fd76af8e2ca8de382e78a5438d9bd224bc29 /drivers/gpu/drm/virtio
parent11c94ace5e25a1b6d12184b1a6f54ef4dc75aa62 (diff)
downloadlinux-bd17d1c77c2ae3bb988a256ea5bda6d405b62b56.tar.xz
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 <robh@kernel.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio')
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_plane.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c
index cad1ca4..519eebd 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);
}