util/mesa-db: Don't account header size
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Mon, 24 Oct 2022 10:13:29 +0000 (13:13 +0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Feb 2023 02:47:30 +0000 (02:47 +0000)
commitf68db0da4cf2b3ef82ccdf3893f5d43c51770ac7
tree56c83a7570690dc4c8a3b04836c0eb0858a31d7a
parent51869405bce651439a27d432eda85fe9167a9aaa
util/mesa-db: Don't account header size

In order to ease writing mesa-db eviction unit tests, stop accounting
mesa-db cache file header size during checking whether cache file reached
the size limit. This change ensures that older unit tests will keep working
whenever cache header version/size will change.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20256>
src/util/mesa_cache_db.c