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

Author: Alyssa Rosenzweig <[email protected]>
Date:   Thu May 13 10:39:01 2021 -0400

panfrost: Reduce blitter pool size

Blit shaders are small and the average app doesn't use many of them, so
try to pack in a single 4k BO. Saves 60k in a lot of simple apps.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10866>

---

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

diff --git a/src/panfrost/lib/pan_blitter.c b/src/panfrost/lib/pan_blitter.c
index 9ca47a416e1..d00df12de15 100644
--- a/src/panfrost/lib/pan_blitter.c
+++ b/src/panfrost/lib/pan_blitter.c
@@ -1599,7 +1599,7 @@ pan_blitter_init(struct panfrost_device *dev)
                 _mesa_hash_table_create(NULL, pan_blit_blend_shader_key_hash,
                                         pan_blit_blend_shader_key_equal);
         panfrost_pool_init(&dev->blitter.shaders.pool, NULL, dev,
-                           PAN_BO_EXECUTE, 65536, "Blitter shaders", false, 
true);
+                           PAN_BO_EXECUTE, 4096, "Blitter shaders", false, 
true);
         pthread_mutex_init(&dev->blitter.shaders.lock, NULL);
         pan_blitter_prefill_blit_shader_cache(dev);
 

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

Reply via email to