RadeonSI Shader Cache May Be Flipped On By Default
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.
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.
6 Comments