Skip to content

Commit

Permalink
drm: virtio-gpu: ensure plane is flushed to host on atomic update
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring authored and Dave Airlie committed Feb 10, 2016
1 parent 11c94ac commit bd17d1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/virtio/virtgpu_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit bd17d1c

Please sign in to comment.