diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 5b334131f57..7ebcb255ceb 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -3505,6 +3505,7 @@ panfrost_launch_xfb(struct panfrost_batch *batch, #endif panfrost_add_job(&batch->pool.base, &batch->scoreboard, job_type, true, false, 0, 0, &t, false); + batch->compute_count++; ctx->uncompiled[PIPE_SHADER_VERTEX] = vs_uncompiled; ctx->prog[PIPE_SHADER_VERTEX] = vs; @@ -3917,6 +3918,7 @@ panfrost_launch_grid_on_batch(struct pipe_context *pipe, panfrost_add_job(&batch->pool.base, &batch->scoreboard, MALI_JOB_TYPE_COMPUTE, true, false, indirect_dep, 0, &t, false); + batch->compute_count++; } static void diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h index d362b5ba1fc..e6e3387e982 100644 --- a/src/gallium/drivers/panfrost/pan_job.h +++ b/src/gallium/drivers/panfrost/pan_job.h @@ -195,6 +195,9 @@ struct panfrost_batch { * jobs present in the batch. */ uint32_t draw_count; + + /* Number of compute jobs in the batch. */ + uint32_t compute_count; }; /* Functions for managing the above */