freedreno: replace fnv1a hash function with xxhash
[mesa.git] / src / gallium / drivers / freedreno / a6xx / fd6_texture.c
index a5396d939c89ce701dbeb447f569ba56ca4511fb..4338f1f1f6c763b4f82cce00ae018d1b18b482c0 100644 (file)
@@ -359,9 +359,7 @@ static uint32_t
 key_hash(const void *_key)
 {
        const struct fd6_texture_key *key = _key;
-       uint32_t hash = _mesa_fnv32_1a_offset_bias;
-       hash = _mesa_fnv32_1a_accumulate_block(hash, key, sizeof(*key));
-       return hash;
+       return XXH32(key, sizeof(*key), 0);
 }
 
 static bool