anv: don't queue pipe control reasons wihout a trace

When there is no trace pointer, there is usually a another tracepoint
being emitted (see STATE_BASE_ADDRESS,
3DSTATE_BINDING_TABLE_POOL_ALLOC emission).

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40503>
This commit is contained in:
Lionel Landwerlin 2026-03-18 15:25:00 +02:00 committed by Marge Bot
parent d038bfa1c1
commit 5d7cf5e762

View file

@ -3213,6 +3213,7 @@ genX(batch_emit_pipe_control)(struct anv_batch *batch,
{
/* Store pipe control reasons if there is enough space */
if (reason != NULL &&
batch->trace != NULL &&
batch->pc_reasons_count < ARRAY_SIZE(batch->pc_reasons))
batch->pc_reasons[batch->pc_reasons_count++] = reason;
emit_pipe_control(batch, devinfo, current_pipeline,