ecore_evas_drm: Calculate gpu blank time offset once at startup
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 28 Jul 2017 20:24:30 +0000 (15:24 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 28 Jul 2017 20:35:03 +0000 (15:35 -0500)
commit2b16fc4278adfdf471c5ea488c08daeb96400a9a
treed8182457e15a5380f6987678630f92a921ef223a
parent0584fc81a2960c47426560fa52bab675b10527b5
ecore_evas_drm: Calculate gpu blank time offset once at startup

So vmware's graphics driver reports the MONOTONIC drm cap, yet uses
CLOCK_REALTIME instead.  This leaves us with a gigantic offset between the
gpu timestamp and the times ecore_time_get() gets from CLOCK_MONOTONIC.

Since ticking screws directly with loop time this results in some long
distance clock jumping.

This commit fixes drm/gl_drm operation under vmware.
src/modules/ecore_evas/engines/drm/ecore_evas_drm.c