panfrost: Allocate WRITE_VALUE jobs with panfrost_pool_alloc_desc()

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11695>
This commit is contained in:
Boris Brezillon 2021-07-01 19:08:03 +02:00 committed by Marge Bot
parent 55ec3596f5
commit d873045b07

View file

@ -203,9 +203,7 @@ panfrost_scoreboard_initialize_tiler(struct pan_pool *pool,
/* Okay, we do. Let's generate it. We'll need the job's polygon list
* regardless of size. */
transfer = panfrost_pool_alloc_aligned(pool,
MALI_WRITE_VALUE_JOB_LENGTH,
64);
transfer = panfrost_pool_alloc_desc(pool, WRITE_VALUE_JOB);
pan_section_pack(transfer.cpu, WRITE_VALUE_JOB, HEADER, header) {
header.type = MALI_JOB_TYPE_WRITE_VALUE;