panfrost: Increase the maximum tiler heap size
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 4 May 2022 16:16:27 +0000 (12:16 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 5 May 2022 15:27:56 +0000 (15:27 +0000)
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@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16330>

src/panfrost/lib/pan_props.c

index 152fd2c..5884a82 100644 (file)
@@ -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);