From 2e9599b34d1fc386570027f3be0cced908ed7849 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Fri, 25 Sep 2020 10:27:33 +0200 Subject: [PATCH] panfrost: Fix bifrost tiler job emission The tiler descriptor pointer and padding sections were not filled. Fixes: d289209ea68f ("panfrost: XML-ify the compute job descriptor") Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Tested-by: Christian Hewitt Part-of: --- src/gallium/drivers/panfrost/pan_context.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 2e01e6b8f6f..92181874d1e 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -369,8 +369,13 @@ panfrost_draw_emit_tiler(struct panfrost_batch *batch, pan_section_ptr(job, BIFROST_TILER_JOB, PRIMITIVE_SIZE) : pan_section_ptr(job, MIDGARD_TILER_JOB, PRIMITIVE_SIZE); - if (is_bifrost) + if (is_bifrost) { panfrost_emit_primitive_size(ctx, points, psiz, prim_size); + pan_section_pack(job, BIFROST_TILER_JOB, TILER, cfg) { + cfg.address = panfrost_batch_get_bifrost_tiler(batch, ~0); + } + pan_section_pack(job, BIFROST_TILER_JOB, PADDING, padding) {} + } section = is_bifrost ? pan_section_ptr(job, BIFROST_TILER_JOB, DRAW) :