panfrost: Fix bifrost tiler job emission

The tiler descriptor pointer and padding sections were not filled.

Fixes: d289209ea6 ("panfrost: XML-ify the compute job descriptor")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6859>
This commit is contained in:
Boris Brezillon 2020-09-25 10:27:33 +02:00
parent 6abb4cd8b9
commit 2e9599b34d

View file

@ -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) :