Module: Mesa
Branch: master
Commit: d56f92502e21767b7f755fa7a093502b2d01ed91
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d56f92502e21767b7f755fa7a093502b2d01ed91

Author: Alyssa Rosenzweig <[email protected]>
Date:   Thu Jul 18 13:04:44 2019 -0700

panfrost: Shrink tiler heap

128MB is excessive and 16MB is still plenty. Saves 112MB/context on
kernels without growable/heap support.

Signed-off-by: Alyssa Rosenzweig <[email protected]>

---

 src/gallium/drivers/panfrost/pan_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_context.c 
b/src/gallium/drivers/panfrost/pan_context.c
index c3e191403fb..d01503e43a9 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -2693,7 +2693,7 @@ panfrost_setup_hardware(struct panfrost_context *ctx)
 
         panfrost_drm_allocate_slab(screen, &ctx->scratchpad, 64, false, 0, 0, 
0);
         panfrost_drm_allocate_slab(screen, &ctx->shaders, 4096, true, 
PAN_ALLOCATE_EXECUTE, 0, 0);
-        panfrost_drm_allocate_slab(screen, &ctx->tiler_heap, 32768, false, 
PAN_ALLOCATE_INVISIBLE | PAN_ALLOCATE_GROWABLE, 1, 128);
+        panfrost_drm_allocate_slab(screen, &ctx->tiler_heap, 4096, false, 
PAN_ALLOCATE_INVISIBLE | PAN_ALLOCATE_GROWABLE, 1, 128);
         panfrost_drm_allocate_slab(screen, &ctx->tiler_polygon_list, 128*128, 
false, PAN_ALLOCATE_INVISIBLE | PAN_ALLOCATE_GROWABLE, 1, 128);
         panfrost_drm_allocate_slab(screen, &ctx->tiler_dummy, 1, false, 
PAN_ALLOCATE_INVISIBLE, 0, 0);
 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to