[PATCH weston v3 0/4] Emit GPU rendering timepoints in weston timeline

Alexandros Frantzis alexandros.frantzis at collabora.com
Wed Sep 27 12:09:12 UTC 2017


This patchset adds support for emitting GPU rendering timepoints in the
weston timeline.

The GPU timestamp data is acquired asynchronously using the functionality
provided by the EGL_KHR_fence_sync and EGL_ANDROID_native_fence_sync
extensions.

I have also updated the wesgr tool to display the GPU timepoints. You can get
the proof-of-concept branch at:

    https://github.com/afrantzis/wesgr/tree/renderer-gpu-timeline

Note that I had trouble getting sane timestamps from GPU sync fds on Kabylake
with a 4.12 kernel. Upgrading to 4.13 fixed the problem.

Changes in v3:
  - See changes in each patch.

Changes in v2:
  - See changes in each patch.

Alexandros Frantzis (4):
  timeline: Add GPU timestamp timepoint argument
  gl-renderer: Add support for fence sync extensions
  libweston: Add check and fallback for linux/sync_file.h
  gl-renderer: Emit GPU rendering begin and end timeline timepoints

 Makefile.am                  |   1 +
 configure.ac                 |   1 +
 libweston/gl-renderer.c      | 179 +++++++++++++++++++++++++++++++++++++++++++
 libweston/timeline.c         |  12 +++
 libweston/timeline.h         |   2 +
 libweston/weston-sync-file.h |  30 ++++++++
 shared/weston-egl-ext.h      |  28 +++++++
 7 files changed, 253 insertions(+)
 create mode 100644 libweston/weston-sync-file.h

-- 
2.14.1



More information about the wayland-devel mailing list