panfrost: Fix indirect draws

Use panfrost_batch_reserve_tls() to reserve the TSD.

Cc: mesa-stable
Fixes: ff3eada7eb ("panfrost: Use the generic preload and FB helpers in the gallium driver")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10369>
(cherry picked from commit 19849a6501)
This commit is contained in:
Boris Brezillon 2021-04-21 10:24:37 +02:00 committed by Eric Engestrom
parent 0c5b2aa429
commit 3c35559eaf
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@
"description": "panfrost: Fix indirect draws",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "ff3eada7eb4e4df0abe93ee76b77101f9d24e72c"
},

View file

@ -570,7 +570,7 @@ panfrost_indirect_draw(struct panfrost_context *ctx,
panfrost_batch_set_requirements(batch);
mali_ptr shared_mem = panfrost_batch_reserve_framebuffer(batch);
mali_ptr shared_mem = panfrost_batch_reserve_tls(batch, false);
struct panfrost_ptr tiler =
panfrost_pool_alloc_aligned(&batch->pool,