mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
panfrost: Count the number of compute jobs at the batch level
We will use this information to make some helpers HW-agnostic so they can work on CSF hardware. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26249>
This commit is contained in:
parent
f16312c01b
commit
ab18d0709a
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -195,6 +195,9 @@ struct panfrost_batch {
|
|||
* <vertex,tiler> 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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue