summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/virtio/virtgpu_drv.h
diff options
context:
space:
mode:
authorGerd Hoffmann2016-05-31 08:50:47 +0200
committerGerd Hoffmann2016-06-07 10:33:12 +0200
commite7cf0963f816fa44190caaf51aeffaa614c340c6 (patch)
treec3cd394a59ecd254f0b4f01cf4dc5e9177cbaddf /drivers/gpu/drm/virtio/virtgpu_drv.h
parentvirtio-gpu: fix output lookup (diff)
downloadkernel-qcow2-linux-e7cf0963f816fa44190caaf51aeffaa614c340c6.tar.gz
kernel-qcow2-linux-e7cf0963f816fa44190caaf51aeffaa614c340c6.tar.xz
kernel-qcow2-linux-e7cf0963f816fa44190caaf51aeffaa614c340c6.zip
virtio-gpu: add atomic_commit function
Do modesets first, then call drm_atomic_helper_commit_planes with active_only = true. That way the outputs doesn't get disabled temporarly on atomic commits. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_drv.h')
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h
index 0a54f43f846a..ecd1c4398e93 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.h
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.h
@@ -33,6 +33,7 @@
#include <drm/drmP.h>
#include <drm/drm_gem.h>
+#include <drm/drm_atomic.h>
#include <drm/drm_crtc_helper.h>
#include <ttm/ttm_bo_api.h>
#include <ttm/ttm_bo_driver.h>