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

Written by Michael Larabel in Mesa on 18 March 2022 at 02:46 PM EDT. 7 Comments
It's arguably long overdue, but landing today within Mesa 22.1 is support in the V3D driver for Mesa's on-disk shader cache functionality. By adding this shader cache to V3D it can help with the performance of this Gallium3D open-source driver most notably used by the Raspberry Pi 4 and newer single board computers.

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.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week