Commit fa722887 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜
Browse files

panfrost: Pass polygon_list to tiler init function



So it doesn't need to allocate it by itself.
Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!5827>
parent 31197c2c
......@@ -1053,7 +1053,10 @@ panfrost_batch_submit(struct panfrost_batch *batch)
panfrost_attach_mfbd(batch, ~0);
}
panfrost_scoreboard_initialize_tiler(batch);
mali_ptr polygon_list = panfrost_batch_get_polygon_list(batch,
MALI_TILER_MINIMUM_HEADER_SIZE);
panfrost_scoreboard_initialize_tiler(batch, polygon_list);
ret = panfrost_batch_submit_jobs(batch);
......
......@@ -173,7 +173,7 @@ panfrost_new_job(
* this is called right before frame submission. */
void
panfrost_scoreboard_initialize_tiler(struct panfrost_batch *batch)
panfrost_scoreboard_initialize_tiler(struct panfrost_batch *batch, mali_ptr polygon_list)
{
struct panfrost_device *dev = pan_device(batch->ctx->base.screen);
......@@ -184,9 +184,6 @@ panfrost_scoreboard_initialize_tiler(struct panfrost_batch *batch)
/* Okay, we do. Let's generate it. We'll need the job's polygon list
* regardless of size. */
mali_ptr polygon_list = panfrost_batch_get_polygon_list(batch,
MALI_TILER_MINIMUM_HEADER_SIZE);
struct mali_job_descriptor_header job = {
.job_type = JOB_TYPE_WRITE_VALUE,
.job_index = batch->scoreboard.write_value_index,
......
......@@ -54,6 +54,7 @@ panfrost_new_job(
void *payload, size_t payload_size,
bool inject);
void panfrost_scoreboard_initialize_tiler(struct panfrost_batch *batch);
void panfrost_scoreboard_initialize_tiler(struct panfrost_batch *batch,
mali_ptr polygon_list);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment