Mesa 20.2 Picks Up A New Disk Cache: TGSI-To-NIR Caching
Written by Michael Larabel in Mesa on 13 May 2020 at 04:47 PM EDT. 6 Comments
Mesa 20.2-devel has a new cache in place for TTN.

Mesa 20.2-devel now provides a disk cache for the TGSI-to-NIR (TTN) code as "TTN is slow" so the conversion from the Gallium3D IR to the more popular NIR is backed by an on-disk cache.

Merged today was the TTN cache itself as well as enabling it for RadeonSI and using TTN caching for compute shaders.

Making use of the TTN cache was found to particularly benefit the "Nine" state tracker. Nine offers Direct3D 9 mapped over Vulkan and while it's not as popular as it once was prior to D9VK (now in DXVK) for Direct3D over Vulkan, this state tracker is still being developed.

Flipping on the TTN cache for the Nine state tracker allows a trace for one game with thousands of shaders to go from taking 339 seconds to run a trace down to just 41 seconds for running the same trace. This new cache dramatically speeds up load times.
Related News
About The Author
Author picture

Michael Larabel is the principal author of 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 automated benchmarking software. He can be followed via Twitter or contacted via

Popular News This Week