Skip to content

Commit bd17d1c

Browse files
robherringairlied
authored andcommitted
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>
1 parent 11c94ac commit bd17d1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/virtio/virtgpu_plane.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane,
8484
plane->state->crtc_h,
8585
plane->state->crtc_x,
8686
plane->state->crtc_y);
87+
virtio_gpu_cmd_resource_flush(vgdev, handle,
88+
plane->state->crtc_x,
89+
plane->state->crtc_y,
90+
plane->state->crtc_w,
91+
plane->state->crtc_h);
8792
}
8893

8994

0 commit comments

Comments
 (0)