[PATCH 12/12] drm/cirrus: advertise DRIVER_ATOMIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Varad Gautam <varad.gautam@xxxxxxxxxxxxx>

allow userspace to use atomic ioctls.

we now pass the following tests when running with cirrus.bpp=32:
igt/kms_atomic_transition:
    plane-all-transition
    plane-use-after-nonblocking-unbind
    plane-all-modeset-transition
    plane-toggle-modeset-transition
    1x-modeset-transitions
    1x-modeset-transitions-nonblocking
igt/kms_atomic:
    plane_primary_legacy
    test_only
    plane_cursor_legacy
    plane_invalid_params
    crtc_invalid_params
igt/kms_setmode
igt/kms_rmfb
drm-tests/atomictest:
    disable_primary
    fullscreen_video
    overlay_pageflip
    primary_pageflip
    video_overlay

Signed-off-by: Varad Gautam <varad.gautam@xxxxxxxxxxxxx>
---
 drivers/gpu/drm/cirrus/cirrus_drv.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.c b/drivers/gpu/drm/cirrus/cirrus_drv.c
index 09461868ed46..c2c010379b93 100644
--- a/drivers/gpu/drm/cirrus/cirrus_drv.c
+++ b/drivers/gpu/drm/cirrus/cirrus_drv.c
@@ -130,7 +130,8 @@ static const struct file_operations cirrus_driver_fops = {
 	.compat_ioctl = drm_compat_ioctl,
 };
 static struct drm_driver driver = {
-	.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME,
+	.driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME |
+			DRIVER_ATOMIC,
 	.load = cirrus_driver_load,
 	.unload = cirrus_driver_unload,
 	.fops = &cirrus_driver_fops,
-- 
2.13.1

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux