[Mesa-dev] [PATCH 1/2] util/disk_cache: support caches for multiple architectures

Axel Davy axel.davy at ens.fr
Thu Mar 2 16:35:39 UTC 2017


On 02/03/2017 17:24, Marek Olšák wrote:
> On Thu, Mar 2, 2017 at 3:03 PM, Mike Lothian <mike at fireburn.co.uk> wrote:
>> Is this because the 32bit and 64bit versions have slightly different time
>> stamps used in the cache directory name? I was under the impression that the
>> cache itself could be shared between 32bit & 64bit?
>>
>> I guess this only matters for the few games that offer both a 32bit and
>> 64bit binary, producing duplicate entries in both caches potentially
> In addition to that, I'd like to know why the CPU architecture is even
> being considered. IMO, the CPU arch can be ignored for the shader
> cache completely.
>
> Marek
Initially I asked about multiarch because I use different mesa and llvm 
version for 32 bits and 64 bits.
Thus it should be careful of incompatibility.

Then Timothy told me it wouldn't be a problem because everything was 
based on mesa and llvm buildtime.
However switching between 32 bits and 64 bits means that the cache will 
get deleted, because the buildtime will be detected different.

I don't know however if it would clean only the cache for one game, or 
for all games.

Axel




More information about the mesa-dev mailing list