Re: [Mesa-dev] [PATCH 3/3] util: Fix disk_cache index calculation on big endian

2017-11-23 Thread Matt Turner
Fixes: 87ab26b2ab35 ("glsl: Add initial functions to implement an on-disk cache") ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 3/3] util: Fix disk_cache index calculation on big endian

2017-11-23 Thread Matt Turner
The cache-test test program attempts to create a collision (using key_a and key_a_collide) by making the first two bytes identical. The idea is fine -- the shader cache wants to use the first four characters of a SHA1 hex digest as the index. The following program unsigned char array[4] =