diff options
author | Rob Herring <robh@kernel.org> | 2016-01-13 15:52:08 -0600 |
---|---|---|
committer | Alistair Strachan <astrachan@google.com> | 2018-03-29 10:39:11 -0700 |
commit | 9f7a117985f0e26445fbce71e2b6e18877cd010e (patch) | |
tree | 8b9c64047b0767d3d89887345e9ef431b5b107b0 /drivers/gpu/drm | |
parent | d9e0aa6379fbea7736f135fc2ca34e9e40e27fdf (diff) |
UPSTREAM: 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: Rob Herring <robh@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit bd17d1c77c2ae3bb988a256ea5bda6d405b62b56)
Change-Id: Ib688992f35a775e2c90640387eceaf343df846de
Signed-off-by: Alistair Strachan <astrachan@google.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_plane.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c index 6b9ad59c643f..af121cf41809 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); } |