From 91a4bcd10e27faa00838493399b7a5e80d4dcf92 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 8 Aug 2018 16:58:33 -0400 Subject: [PATCH] ee_drm: Fix tick job timestamps for funny GPU clocks Summary: The animator timestamps were only getting the offset applied when they came from page flips. The "early tick" logic failed to apply the offset. This likely only changes behaviour on vmware's graphics stack, and only the env var ECORE_EVAS_DRM_GPU_CLOCK_WRONG is set. Reviewers: devilhorns Reviewed By: devilhorns Subscribers: bu5hm4n, cedric, #reviewers, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6792 --- src/modules/ecore_evas/engines/drm/ecore_evas_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c index c1c60f8b15..794cf841fd 100644 --- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c +++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c @@ -767,7 +767,7 @@ _tick_job(void *data) ecore_drm2_output_info_get(edata->output, &x, &y, &w, &h, NULL); ecore_evas_animator_tick(ee, &(Eina_Rectangle){x, y, w, h}, - edata->tick_job_timestamp); + edata->tick_job_timestamp - edata->offset); } static void