intel/ds: add query count in query tracepoints

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23074>
This commit is contained in:
Lionel Landwerlin
2023-06-13 11:11:27 +03:00
parent 930e862af7
commit e86f3c7abb
3 changed files with 13 additions and 7 deletions

View File

@@ -394,7 +394,8 @@ CREATE_DUAL_EVENT_CALLBACK(generate_draws, INTEL_DS_QUEUE_STAGE_GENERATE_DRAWS)
CREATE_DUAL_EVENT_CALLBACK(trace_copy, INTEL_DS_QUEUE_STAGE_BLORP)
CREATE_DUAL_EVENT_CALLBACK(query_clear_blorp, INTEL_DS_QUEUE_STAGE_BLORP)
CREATE_DUAL_EVENT_CALLBACK(query_clear_cs, INTEL_DS_QUEUE_STAGE_CMD_BUFFER)
CREATE_DUAL_EVENT_CALLBACK(query_copy, INTEL_DS_QUEUE_STAGE_CMD_BUFFER)
CREATE_DUAL_EVENT_CALLBACK(query_copy_cs, INTEL_DS_QUEUE_STAGE_CMD_BUFFER)
CREATE_DUAL_EVENT_CALLBACK(query_copy_shader, INTEL_DS_QUEUE_STAGE_BLORP)
void
intel_ds_begin_cmd_buffer_annotation(struct intel_ds_device *device,

View File

@@ -122,11 +122,16 @@ def define_tracepoints(args):
begin_end_tp('generate_draws')
# vkCmdResetQuery, only for Anv
begin_end_tp('query_clear_blorp')
begin_end_tp('query_clear_cs', end_pipelined=False)
begin_end_tp('query_clear_blorp',
tp_args=[Arg(type='uint32_t', var='count', c_format='%u')])
begin_end_tp('query_clear_cs',
tp_args=[Arg(type='uint32_t', var='count', c_format='%u')],
end_pipelined=False)
# vkCmdCopyQueryResults, only for Anv
begin_end_tp('query_copy', end_pipelined=False)
begin_end_tp('query_copy',
tp_args=[Arg(type='uint32_t', var='count', c_format='%u')],
end_pipelined=False)
# Various draws/dispatch, Anv & Iris
begin_end_tp('draw',