anv/perfetto: include all pc reasons
Up to 4 reasons can be saved and displayed. Previously, we were only displaying one reason for Perfetto. Co-authored-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38500>
This commit is contained in:
@@ -6669,9 +6669,12 @@ anv_add_pending_pipe_bits(struct anv_cmd_buffer* cmd_buffer,
|
||||
const char* reason)
|
||||
{
|
||||
cmd_buffer->state.pending_pipe_bits |= bits;
|
||||
if (INTEL_DEBUG(DEBUG_PIPE_CONTROL)) {
|
||||
anv_cmd_buffer_pending_pipe_debug(cmd_buffer, bits, reason);
|
||||
if (unlikely(u_trace_enabled(&cmd_buffer->device->ds.trace_context))) {
|
||||
if (cmd_buffer->batch.pc_reasons_count < ARRAY_SIZE(cmd_buffer->batch.pc_reasons))
|
||||
cmd_buffer->batch.pc_reasons[cmd_buffer->batch.pc_reasons_count++] = reason;
|
||||
}
|
||||
if (INTEL_DEBUG(DEBUG_PIPE_CONTROL))
|
||||
anv_cmd_buffer_pending_pipe_debug(cmd_buffer, bits, reason);
|
||||
}
|
||||
|
||||
struct anv_performance_configuration_intel {
|
||||
|
||||
@@ -89,8 +89,6 @@ anv_cmd_buffer_pending_pipe_debug(struct anv_cmd_buffer *cmd_buffer,
|
||||
anv_dump_pipe_bits(bits, stream);
|
||||
mesa_log_stream_printf(stream, "reason: %s", reason);
|
||||
|
||||
if (cmd_buffer->batch.pc_reasons_count < ARRAY_SIZE(cmd_buffer->batch.pc_reasons))
|
||||
cmd_buffer->batch.pc_reasons[cmd_buffer->batch.pc_reasons_count++] = reason;
|
||||
mesa_log_stream_printf(stream, "\n");
|
||||
|
||||
mesa_log_stream_destroy(stream);
|
||||
|
||||
Reference in New Issue
Block a user