[Mesa-dev] [PATCH] radeonsi Add disk shader cache

Emil Velikov emil.l.velikov at gmail.com
Tue Jan 24 16:47:00 UTC 2017


On 24 January 2017 at 16:08, kdj0c <kdj0c at djinvi.net> wrote:
> use the util/disk_cache.c interface to cache some? radeonsi shaders on disk
>
> missing features :
>
> - add #if ENABLE_SHADER_CACHE where needed.
Afaict one should not need this. The API already provides stubs as
needed, so most/everything will get optimised away.

> - when loading from disk cache, also insert it to RAM cache.
>
> must be built with --enable-shader-cache to have the cache working.
I killed this option off a few days ago. configure should give you a
warning if you set it, doesn't it ?

> ---
> Hi, This is my first mail to the list.
>
Welcome. Can I suggest updating your git config to include your real name.

> I'm not sure this is the right way to do this, it's my first attempt to patch mesa.
> I've tested on a radeon HD7950 with glxgears and quake3. I have some binary shaders in ~/.cache/mesa after running them, and they are re-used when re-launching them.
> I wanted to test more recent games, but the LD_LIBRARY_PATH trick didn't work with steam games, and I don't want to install mesa master system-wide.
>
LIBGL_DRIVERS_PATH is the one you want here. Similar to the above it
takes a semicolon separated list... which should work (tried it a
month ago).

-Emil


More information about the mesa-dev mailing list