RadeonSI Shader Cache May Be Flipped On By Default
Written by Michael Larabel in Radeon on 23 February 2017 at 01:10 PM EST. 6 Comments
RADEON --
On Wednesday the RadeonSI/R600g shader cache landed for on-disk caching of TGSI IR while one day later the caching is already being expanded and may soon be enabled by default.

With the Mesa Git code since yesterday, MESA_GLSL_CACHE_ENABLE=1 must be set as the environment variable for controlling the shader cache behavior for R600g and RadeonSI. But a patch sent out today by Timothy Arceri would enable it by default. He commented, "Piglit and all games tested so far seem to be working without issue. This change will allow wide user testing and we can decided before the next release if we need to turn it off again."

There's also another patch as well. This patch would implement the RadeonSI on-disk shader cache for the GPU-generated shader code where as right now in Mesa it's just caching to disk the TGSI (Gallium3D IR) that still needs to be compiled via the AMDGPU compiler back-end back to the native GPU instructions. This additional 69 lines of code building upon the rest of the Mesa shader cache work would cache the hardware binary, providing the greatest benefit.

I'm still running some tests of Mesa Git from yesterday and hope to have those results to share shortly.
About The Author
Author picture

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 10,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 or contacted via MichaelLarabel.com.

Related Radeon News
Popular News