util: import cache.c/h from glsl

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 15 November 2016 13:22 UTC

It's not dependent on GLSL and it can be useful for shader caches that don't deal with GLSL.

v2: address review comments
v3: keep the other 3 lines in configure.ac

3172730 util: import cache.c/h from glsl
configure.ac | 1 -
src/compiler/Makefile.glsl.am | 4 -
src/compiler/Makefile.sources | 4 -
src/compiler/glsl/cache.c | 710 ---------------------------------
src/compiler/glsl/cache.h | 177 ---------
src/compiler/glsl/tests/cache_test.c | 22 +-
src/util/Makefile.sources | 2 +
src/util/disk_cache.c | 712 ++++++++++++++++++++++++++++++++++
src/util/disk_cache.h | 176 +++++++++
9 files changed, 891 insertions(+), 917 deletions(-)

Upstream: cgit.freedesktop.org


  • Share