]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/virtio/virtgpu_plane.c
drm: virtio-gpu: ensure plane is flushed to host on atomic update
[karo-tx-linux.git] / 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);
 }