Commit bd17d1c7 authored by Rob Herring's avatar Rob Herring Committed by Dave Airlie

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: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 11c94ace
...@@ -84,6 +84,11 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane, ...@@ -84,6 +84,11 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane,
plane->state->crtc_h, plane->state->crtc_h,
plane->state->crtc_x, plane->state->crtc_x,
plane->state->crtc_y); 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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment