Mesa (main): panfrost: Increase the maximum tiler heap size

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 5 15:48:05 UTC 2022


Module: Mesa
Branch: main
Commit: 17c98393f9f3cb0801b73b2d4c62442859417368
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=17c98393f9f3cb0801b73b2d4c62442859417368

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Wed May  4 12:16:27 2022 -0400

panfrost: Increase the maximum tiler heap size

Required to avoid tiler heap out-of-memory condition on Valhall on tests
including:

dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawelements_combined_grid_1200x1200_drawcount_8

This test passes on Bifrost without the fix because varyings are only allocated
from the tiler heap on Valhall.

Minimal perf or memory usage impacted is expected, as even old versions of
panfrost.ko support growable memory.

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16330>

---

 src/panfrost/lib/pan_props.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/lib/pan_props.c b/src/panfrost/lib/pan_props.c
index 152fd2cb5ef..5884a826b8e 100644
--- a/src/panfrost/lib/pan_props.c
+++ b/src/panfrost/lib/pan_props.c
@@ -282,7 +282,7 @@ panfrost_open_device(void *memctx, int fd, struct panfrost_device *dev)
          * active for a single job chain at once, so a single heap can be
          * shared across batches/contextes */
 
-        dev->tiler_heap = panfrost_bo_create(dev, 64 * 1024 * 1024,
+        dev->tiler_heap = panfrost_bo_create(dev, 128 * 1024 * 1024,
                         PAN_BO_INVISIBLE | PAN_BO_GROWABLE, "Tiler heap");
 
         pthread_mutex_init(&dev->submit_lock, NULL);



More information about the mesa-commit mailing list