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 <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10866>
This commit is contained in:
Alyssa Rosenzweig 2021-05-13 10:39:01 -04:00 committed by Marge Bot
parent c900236569
commit 6bd33ce2dc

View file

@ -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);