summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/virtio/virtgpu_plane.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-01-13 22:52:08 +0100
committerDave Airlie <airlied@redhat.com>2016-02-10 23:56:22 +0100
commitbd17d1c77c2ae3bb988a256ea5bda6d405b62b56 (patch)
tree38a1fd76af8e2ca8de382e78a5438d9bd224bc29 /drivers/gpu/drm/virtio/virtgpu_plane.c
parentdrm: virtio-gpu: get the fb from the plane state for atomic updates (diff)
downloadlinux-bd17d1c77c2ae3bb988a256ea5bda6d405b62b56.tar.xz
linux-bd17d1c77c2ae3bb988a256ea5bda6d405b62b56.zip
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/virtgpu_plane.c')
-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 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);
}