drm/virtio: track virtual output state
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 13 Aug 2018 15:28:55 +0000 (17:28 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Sep 2018 06:26:24 +0000 (08:26 +0200)
commit6c19787e10b1bb99abbc3d257156c22bea5ca5b1
tree5be573e53b5dfc634f72bc7fd1da768b87e8fd11
parent7948a2b15873319d1bff4d37c09b9f2bf87b9021
drm/virtio: track virtual output state

Track whenever an virtual output (crtc) is enabled or disabled.

On atomic updates check for both framebuffer being present and crtc
being enabled to figure whenever the output is active or not.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20180813152855.12863-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_display.c
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_plane.c