summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/virtio/virtgpu_drv.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-05-31 09:50:47 +0300
committerGerd Hoffmann <kraxel@redhat.com>2016-06-07 11:33:12 +0300
commite7cf0963f816fa44190caaf51aeffaa614c340c6 (patch)
treec3cd394a59ecd254f0b4f01cf4dc5e9177cbaddf /drivers/gpu/drm/virtio/virtgpu_drv.h
parentd3767d49f16b619c1943ce003e1f74817414aeb0 (diff)
downloadlinux-e7cf0963f816fa44190caaf51aeffaa614c340c6.tar.xz
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>