X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Futil%2Fu_cache.c;h=15f4a8831f21fad0ce0e647a698077bad4980203;hb=ccd13da0fc1f1813b55fc0d2181a6cb0d3b42b0d;hp=47c16b1c927f5f70fbd6d1dddeeaea8e0df11e3a;hpb=9615daa9324341f6a56932dc46b807f402d18283;p=mesa.git diff --git a/src/gallium/auxiliary/util/u_cache.c b/src/gallium/auxiliary/util/u_cache.c index 47c16b1c927..15f4a8831f2 100644 --- a/src/gallium/auxiliary/util/u_cache.c +++ b/src/gallium/auxiliary/util/u_cache.c @@ -202,7 +202,7 @@ util_cache_destroy(struct util_cache *cache) double stddev = sqrt(mean); unsigned i; for(i = 0; i < cache->size; ++i) { - double z = fabs(cache->count - mean)/stddev; + double z = fabs(cache->entries[i].count - mean)/stddev; /* This assert should not fail 99.9999998027% of the times, unless * the hash function is a poor one */ assert(z <= 6.0);