ecore_drm2: Add an env var to disable atomic pageflips
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 27 Apr 2017 15:13:14 +0000 (10:13 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 5 May 2017 17:53:21 +0000 (12:53 -0500)
Allows testing non-atomic paths without a reboot or a rebuild.

src/lib/ecore_drm2/ecore_drm2_device.c

index 5ee4903..dbd95fe 100644 (file)
@@ -620,8 +620,10 @@ ecore_drm2_device_open(Ecore_Drm2_Device *device)
 # if 0
    /* check that this system can do atomic */
    _ecore_drm2_use_atomic = _drm2_atomic_usable(device->fd);
-   if (_ecore_drm2_use_atomic)
 # endif
+   if (getenv("ECORE_DRM2_ATOMIC_DISABLE"))
+     _ecore_drm2_use_atomic = EINA_FALSE;
+   if (_ecore_drm2_use_atomic)
 #endif
      {
         if (sym_drmSetClientCap(device->fd,