ecore_drm2: Add an env var to disable atomic pageflips

Allows testing non-atomic paths without a reboot or a rebuild.
This commit is contained in:
Derek Foreman 2017-04-27 10:13:14 -05:00
parent 0595e70b22
commit 950df19c67
1 changed files with 3 additions and 1 deletions

View 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,