disk_cache: assert if a cache entries keys don't match mesa
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 25 Aug 2017 04:04:19 +0000 (14:04 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 27 Aug 2017 23:29:15 +0000 (09:29 +1000)
commit2422124f6ee7d60b519b0fa7eeab9340901fd1d9
treef6158a08edce1e7ff5e7a1bf301a1f4ad94ec248
parentd500c9b060e1715e8d3a984d4a5c6f6179f46943
disk_cache: assert if a cache entries keys don't match mesa

In ef42423e7be9 I enabled the check for release builds however we
still want to assert in debug builds in case of collisions or
just general bugs with the key building/compare code. Otherwise
it will just fail silently effectively disabling the cache.

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/util/disk_cache.c