[Mesa-dev] GLSL IR & TGSI on-disk shader cache
Michel Dänzer
michel at daenzer.net
Tue Feb 7 06:50:28 UTC 2017
On 07/02/17 12:42 PM, Timothy Arceri wrote:
>
> This series does not include the patch that adds cache support
> to the radeonsi backend, the main reason for this is that llvm
> currently doesn't allow the version to be queried at runtime
> (as far as I'm aware) although it seems like other are interested
> in this feature [1] so I will follow up on that.
>
> The reason we don't just use the build time like radv is that we
> will want something consistent accross distros to enable
> distribution of precompiled shaders.
I'm not sure that's realistic. Consider e.g.
https://bugs.freedesktop.org/show_bug.cgi?id=99078
which is a regression in LLVM 3.9.1 caused by backporting a fix from
trunk. Since there are no plans for an LLVM 3.9.2 release, distros have
to revert the change in their 3.9.1 packages. Mesa can't tell the
difference from the version number, but the generated code can be very
different depending on whether the change in question is present or not.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list