On Tue, Feb 21, 2023 at 12:00:06AM +1100, Jonathan Gray wrote: > > Here is a xenocara diff to enable the shader cache. > It is created in ~/.cache/mesa_shader_cache/ > > On an Intel system (x250 with Broadwell) launching gtk4-demo results in > a 1.6M cache. The time to a window appearing is noticeably shorter > running it again after that. > > The various firefox and chromium ports will need to change > unveil/pledge policies to use it. Chromium at least still runs but > there are multiple warnings that directories can't be created. > > Index: lib/mesa/src/util/disk_cache.c > =================================================================== > RCS file: /cvs/xenocara/lib/mesa/src/util/disk_cache.c,v > retrieving revision 1.13 > diff -u -p -r1.13 disk_cache.c > --- lib/mesa/src/util/disk_cache.c 28 Jan 2023 08:56:53 -0000 1.13 > +++ lib/mesa/src/util/disk_cache.c 20 Feb 2023 12:42:45 -0000 > @@ -80,11 +80,6 @@ disk_cache_create(const char *gpu_name, > uint8_t cache_version = CACHE_VERSION; > size_t cv_size = sizeof(cache_version); > > -#ifdef __OpenBSD__ > - /* default to no disk shader cache to avoid pledge violations in chromium > */ > - return NULL; > -#endif > - > if (!disk_cache_enabled()) > return NULL; > >
I'm ok with this. -- Matthieu Herrb