panfrost: Drop the vertex_count argument passed to panfrost_batch_get_bifrost_tiler()

We always pass a non-zero vertex_count. Let's get rid of this argument
and unconditionally emit the heap descriptor.

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:
Boris Brezillon 2023-11-15 15:35:16 +01:00 committed by Marge Bot
parent e44dae6cdb
commit 5225eeb4b1

View file

@ -2953,14 +2953,10 @@ panfrost_update_state_3d(struct panfrost_batch *batch)
#if PAN_ARCH >= 6
static mali_ptr
panfrost_batch_get_bifrost_tiler(struct panfrost_batch *batch,
unsigned vertex_count)
panfrost_batch_get_bifrost_tiler(struct panfrost_batch *batch)
{
struct panfrost_device *dev = pan_device(batch->ctx->base.screen);
if (!vertex_count)
return 0;
if (batch->tiler_ctx.bifrost)
return batch->tiler_ctx.bifrost;
@ -3430,7 +3426,7 @@ jm_emit_tiler_job(struct panfrost_batch *batch,
#if PAN_ARCH >= 6
pan_section_pack(job, TILER_JOB, TILER, cfg) {
cfg.address = panfrost_batch_get_bifrost_tiler(batch, ~0);
cfg.address = panfrost_batch_get_bifrost_tiler(batch);
}
pan_section_pack(job, TILER_JOB, PADDING, cfg)