mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 21:50:11 +01:00
The Xe ioctl DRM_XE_DEVICE_QUERY_ENGINE_CYCLES provides accurate timestamps correlated between the CPU and GPU. However, it is slow and impacts performance while collecting Perfetto traces. Instead, use Perfetto's GetBootTimeNs() to track when to emit the BUILTIN_CLOCK_BOOTTIME clock sync event so it only occurs every 1 second. This reduces the impact of recording gpu.renderstages from -8% to -4%. More concretely, FPS measurements when tracing Unity BoatAttack demo on an Intel ADL device: * gpu.renderstages disabled: 48.044293667 * gpu.renderstages enabled: 38.119778333 (-20.66%) * gpu.renderstages enabeled + this fix: 42.641818333 (-11.24%) Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37095> |
||
|---|---|---|
| .. | ||
| .clang-format | ||
| intel_driver_ds.cc | ||
| intel_driver_ds.h | ||
| intel_pps_driver.cc | ||
| intel_pps_driver.h | ||
| intel_pps_perf.cc | ||
| intel_pps_perf.h | ||
| intel_pps_priv.h | ||
| intel_tracepoints.py | ||
| meson.build | ||