From 5225eeb4b116f96edd0963b0a45ecc1a2ad48a8e Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 15 Nov 2023 15:35:16 +0100 Subject: [PATCH] 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 Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index eeae295f44d..694d653441e 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -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)