anv: add utrace tracking of frame boundaries

Based on vkQueuePresentKHR calls. It just helps spotting the beginning
end of a frame in perfetto when apps are using 3/4 command buffers per
frame.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22276>
This commit is contained in:
Lionel Landwerlin
2023-04-04 00:21:18 +03:00
committed by Marge Bot
parent da6842007f
commit 66edd030ab
5 changed files with 34 additions and 14 deletions

View File

@@ -63,10 +63,11 @@ def define_tracepoints(args):
end_of_pipe=end_pipelined,
need_cs_param=need_cs_param)
# Frame tracepoints, only for Iris
# Frame tracepoints
begin_end_tp('frame',
tp_args=[Arg(type='uint32_t', var='frame', c_format='%u'),],
end_pipelined=False)
end_pipelined=False,
need_cs_param=True)
# Annotations for Queue(Begin|End)DebugUtilsLabelEXT
begin_end_tp('queue_annotation',