mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
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:
parent
d038bfa1c1
commit
5d7cf5e762
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue