Merged requested to merge fjdegroo/mesa:wip/intel-measure-cpu-timing into main
INTEL_MEASURE normally measures timing of GPU events. However, it can be useful to instead measure when these gfx API calls were requested of the driver. When used in conjunction with other driver debug capabilities (e.g. INTEL_DEBUG=pc for analyzing stalls and flushes) it can be determined the trigger event.
Initial commit, without plumbing into anv/iris.
"INTEL_MEASURE=cpu=1" will collect a cpu timestamp for each INTEL_MEASURE event instead of GPU timestamps.