summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-04-27 10:13:14 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:21 -0500
commit950df19c6759c1ec2fabd934207e3959a170dfda (patch)
tree32f3e3bb21c8c3bcdec7d79379a104eabded3f1f /src
parent0595e70b2283db391cd98e234f8759095f211845 (diff)
ecore_drm2: Add an env var to disable atomic pageflips
Allows testing non-atomic paths without a reboot or a rebuild.
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 5ee49038d8..dbd95fe465 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -620,8 +620,10 @@ ecore_drm2_device_open(Ecore_Drm2_Device *device)
620# if 0 620# if 0
621 /* check that this system can do atomic */ 621 /* check that this system can do atomic */
622 _ecore_drm2_use_atomic = _drm2_atomic_usable(device->fd); 622 _ecore_drm2_use_atomic = _drm2_atomic_usable(device->fd);
623 if (_ecore_drm2_use_atomic)
624# endif 623# endif
624 if (getenv("ECORE_DRM2_ATOMIC_DISABLE"))
625 _ecore_drm2_use_atomic = EINA_FALSE;
626 if (_ecore_drm2_use_atomic)
625#endif 627#endif
626 { 628 {
627 if (sym_drmSetClientCap(device->fd, 629 if (sym_drmSetClientCap(device->fd,