Skip to content

v3d: Add support for timestamp queries

Christopher Michael requested to merge (removed):main into main

What does this MR do and why?

v3d: Add support for timestamp queries

This patchset adds support for timestamp queries to the v3d driver. Both PIPE_CAP_QUERY_TIMESTAMP and PIPE_CAP_QUERY_TIME_ELAPSED are supported. Support is implemented for using glGetQueryObject or glGetInteger(GL_TIMESTAMP) to retrieve timestamps. In addition, this patchset also supports using cpu_queue and multisync (if supported by the kernel).

This patchset was tested with Rpi4 and Rpi5 devices running kernel 6.8 (which has support for cpu_queue and multisync), and also tested with cpu_queue support disabled. The tests were run using piglit timer tests (arb_timer_query-timestamp-get, ext_timer_query-lifetime, ext_timer_query-time-elapsed, timer_query). Additional tests were run using apitrace replay [--pgpu/--pcpu] on a glxgears trace.

Merge request reports

Loading