aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
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/lib/ecore_drm2/ecore_drm2_device.c
parentecore-drm2: Do atomic commits per-output (diff)
downloadefl-950df19c6759c1ec2fabd934207e3959a170dfda.tar.gz
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/lib/ecore_drm2/ecore_drm2_device.c')
-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)
# 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,