Raspberry Pi "V3D" OpenGL Driver Improving Performance With On-Disk Shader Cache

Igalia has wired up the V3D on-disk shader cache support for caching compiled shaders to disk. This avoids recompiling shaders on subsequent loads for games and other applications. This can speed-up game load times and help in the performance in-game for those that load their shaders as needed.
This V3D shader cache work is sponsored by the Raspberry Pi Foundation and works across vertex / geometry / fragment / compute shaders. The V3DV Vulkan driver already had shader cache support.
As part of this V3D shader cache work, the V3D_DEBUG=cache environment variable is also added for helping to analyze the on-disk shader cache behavior.
More details on the Mesa GitLab for this long overdue V3D on-disk shader cache support.
7 Comments