[PATCH 2/4] drm: virtio-gpu: ensure plane is flushed to host on atomic update
Rob Herring
robh at kernel.org
Wed Jan 13 13:52:08 PST 2016
This fixes drawing updates when updating planes with atomic API.
Signed-off-by: Rob Herring <robh at kernel.org>
---
drivers/gpu/drm/virtio/virtgpu_plane.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c
index 6b9ad59..af121cf 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);
}
--
2.5.0
More information about the dri-devel
mailing list