Mesa (main): panfrost: Allocate WRITE_VALUE jobs with panfrost_pool_alloc_desc()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 5 05:56:29 UTC 2021
Module: Mesa
Branch: main
Commit: d873045b07586cae98eff39ebbb8f4e04dff8b56
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d873045b07586cae98eff39ebbb8f4e04dff8b56
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Thu Jul 1 19:08:03 2021 +0200
panfrost: Allocate WRITE_VALUE jobs with panfrost_pool_alloc_desc()
Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11695>
---
src/panfrost/lib/pan_scoreboard.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/panfrost/lib/pan_scoreboard.c b/src/panfrost/lib/pan_scoreboard.c
index 5589b4da584..81a79dd84ec 100644
--- a/src/panfrost/lib/pan_scoreboard.c
+++ b/src/panfrost/lib/pan_scoreboard.c
@@ -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;
More information about the mesa-commit
mailing list