mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
c900236569
commit
6bd33ce2dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue