mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
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:
parent
930e862af7
commit
e86f3c7abb
3 changed files with 13 additions and 7 deletions
|
|
@ -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(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_blorp, INTEL_DS_QUEUE_STAGE_BLORP)
|
||||||
CREATE_DUAL_EVENT_CALLBACK(query_clear_cs, INTEL_DS_QUEUE_STAGE_CMD_BUFFER)
|
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
|
void
|
||||||
intel_ds_begin_cmd_buffer_annotation(struct intel_ds_device *device,
|
intel_ds_begin_cmd_buffer_annotation(struct intel_ds_device *device,
|
||||||
|
|
|
||||||
|
|
@ -122,11 +122,16 @@ def define_tracepoints(args):
|
||||||
begin_end_tp('generate_draws')
|
begin_end_tp('generate_draws')
|
||||||
|
|
||||||
# vkCmdResetQuery, only for Anv
|
# vkCmdResetQuery, only for Anv
|
||||||
begin_end_tp('query_clear_blorp')
|
begin_end_tp('query_clear_blorp',
|
||||||
begin_end_tp('query_clear_cs', end_pipelined=False)
|
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
|
# 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
|
# Various draws/dispatch, Anv & Iris
|
||||||
begin_end_tp('draw',
|
begin_end_tp('draw',
|
||||||
|
|
|
||||||
|
|
@ -798,7 +798,7 @@ void genX(CmdResetQueryPool)(
|
||||||
cmd_buffer->state.pending_query_bits =
|
cmd_buffer->state.pending_query_bits =
|
||||||
ANV_QUERY_RENDER_TARGET_WRITES_PENDING_BITS(cmd_buffer->device->info);
|
ANV_QUERY_RENDER_TARGET_WRITES_PENDING_BITS(cmd_buffer->device->info);
|
||||||
|
|
||||||
trace_intel_end_query_clear_blorp(&cmd_buffer->trace);
|
trace_intel_end_query_clear_blorp(&cmd_buffer->trace, queryCount);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -878,7 +878,7 @@ void genX(CmdResetQueryPool)(
|
||||||
unreachable("Unsupported query type");
|
unreachable("Unsupported query type");
|
||||||
}
|
}
|
||||||
|
|
||||||
trace_intel_end_query_clear_cs(&cmd_buffer->trace);
|
trace_intel_end_query_clear_cs(&cmd_buffer->trace, queryCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
void genX(ResetQueryPool)(
|
void genX(ResetQueryPool)(
|
||||||
|
|
@ -1649,7 +1649,7 @@ void genX(CmdCopyQueryPoolResults)(
|
||||||
dest_addr = anv_address_add(dest_addr, destStride);
|
dest_addr = anv_address_add(dest_addr, destStride);
|
||||||
}
|
}
|
||||||
|
|
||||||
trace_intel_end_query_copy(&cmd_buffer->trace);
|
trace_intel_end_query_copy(&cmd_buffer->trace, queryCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if GFX_VERx10 >= 125 && ANV_SUPPORT_RT
|
#if GFX_VERx10 >= 125 && ANV_SUPPORT_RT
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue