]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm: virtio-gpu: ensure plane is flushed to host on atomic update
authorRob Herring <robh@kernel.org>
Wed, 13 Jan 2016 21:52:08 +0000 (15:52 -0600)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Feb 2016 22:56:22 +0000 (08:56 +1000)
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>
drivers/gpu/drm/virtio/virtgpu_plane.c

index cad1ca49ad313547dd746f5fcee3f109f2cd4fb1..519eebd6c581fc85572415ecd1a820ff138b979b 100644 (file)
@@ -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);
 }