util/disk_cache: do crc32 check on compressed data for ZSTD
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 16 Oct 2020 04:07:34 +0000 (15:07 +1100)
committerMarge Bot <eric+marge@anholt.net>
Sun, 21 Feb 2021 02:50:45 +0000 (02:50 +0000)
commit48d7c4e0f3626a744bfa4434b3fd663d71c5824a
treed7a24aaa63f2e42a426acac8f2fe6dde610692c2
parentf54a65c69be700c5a07ddf53022d72cec5679013
util/disk_cache: do crc32 check on compressed data for ZSTD

This will be faster and avoids checking for errors with the
compression implementation which we shouldn't need to do. Instead
we trust the compression library does the correct thing and simply
error check the data loaded from disk.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7725>
src/util/disk_cache.c
src/util/disk_cache_os.c
src/util/disk_cache_os.h