[Mesa-dev] [PATCH 0/7] timestamp/arch directory removal for disk_cache
Grazvydas Ignotas
notasas at gmail.com
Sun Mar 12 18:32:01 UTC 2017
This series removes arch and timestamp directories and instead hashes
that information into the cache keys themselves. It still uses the
timestamps, fixing that (replacing with build id?) is left for a later
time. I've also left the gpu name dir as I kind of like it, but it's
trivial to hash it in too, if it's how others want it to be.
This series should also solve bug 100091.
Grazvydas Ignotas (7):
util/mesa-sha1: add a context clone function
util/mesa-sha1: allow to finish without taking the result
util/disk_cache: use a helper to compute cache keys
util/disk_cache: base key hashes from initial context
tests/cache_test: use the blob key's actual first byte
util/disk_cache: hash timestamps into the cache keys
util/disk_cache: hash pointer size into cache keys
src/compiler/glsl/glsl_parser_extras.cpp | 2 +-
src/compiler/glsl/shader_cache.cpp | 2 +-
src/compiler/glsl/tests/cache_test.c | 31 +++-----
src/gallium/drivers/radeonsi/si_state_shaders.c | 6 +-
src/mesa/state_tracker/st_shader_cache.c | 12 +--
src/util/disk_cache.c | 99 ++++++++++---------------
src/util/disk_cache.h | 31 ++++----
src/util/mesa-sha1.c | 16 +++-
src/util/mesa-sha1.h | 3 +
9 files changed, 91 insertions(+), 111 deletions(-)
--
2.7.4
More information about the mesa-dev
mailing list