diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-02-17 13:33:25 +0000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-02-21 09:52:31 +0000 |
commit | 39f224b3a65f10f3957d240582c63fafd7d2d524 (patch) | |
tree | 2583250cc2526461df674fe0b388cf4d3b30ecaa /src/lib/ecore_drm2/ecore_drm2_private.h | |
parent | 2c259edd9f6ed1d07e18eae0a2c6d0a8ce9bc6f3 (diff) |
ecore drm2 - work around kms/drm bug seemingly when no flip event comes
so we request a flip so we can do vsync events. the flip event never
comes. i am not sure why it never comes, but we ask and nothing
arrives, and this basically halts all rendering in wayland compositor
mode as we are syncing rendering to vsync (of course). put in a
timeout of 0.05s (50ms) to try ask again if the event never comes and
log the error. this is a pretty useful workaround becauswe having your
entire display freeze is a ... bad thing.
@fix
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_private.h b/src/lib/ecore_drm2/ecore_drm2_private.h index 490f1665e4..d1a749a871 100644 --- a/src/lib/ecore_drm2/ecore_drm2_private.h +++ b/src/lib/ecore_drm2/ecore_drm2_private.h | |||
@@ -252,6 +252,8 @@ struct _Ecore_Drm2_Output | |||
252 | /* unused when doing atomic */ | 252 | /* unused when doing atomic */ |
253 | drmModePropertyPtr dpms; | 253 | drmModePropertyPtr dpms; |
254 | 254 | ||
255 | Ecore_Timer *flip_timeout; | ||
256 | |||
255 | Ecore_Drm2_Output_Mode *current_mode; | 257 | Ecore_Drm2_Output_Mode *current_mode; |
256 | Eina_List *modes; | 258 | Eina_List *modes; |
257 | 259 | ||