summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2016-10-07 13:57:44 -0700
committerVinson Lee <vlee@freedesktop.org>2016-10-10 11:17:31 -0700
commit0a898ec28bf1bd1bd302c881af13a02b557acb07 (patch)
tree36fdb08cca71b9950d1d0bf471bc8244580a11fb /src/compiler
parentf8f6f60a362d067c9e72cf675736b35730e06a0d (diff)
downloadexternal_mesa3d-0a898ec28bf1bd1bd302c881af13a02b557acb07.zip
external_mesa3d-0a898ec28bf1bd1bd302c881af13a02b557acb07.tar.gz
external_mesa3d-0a898ec28bf1bd1bd302c881af13a02b557acb07.tar.bz2
glsl: Add missing cache_destroy stub function.
CC glsl/tests/cache_test.o glsl/tests/cache_test.c: In function ‘test_cache_create’: glsl/tests/cache_test.c:160:4: error: implicit declaration of function ‘cache_destroy’ [-Werror=implicit-function-declaration] cache_destroy(cache); ^ Fixes: 87ab26b2ab35 ("glsl: Add initial functions to implement an on-disk cache") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/cache.h b/src/compiler/glsl/cache.h
index 78df32b..d804169 100644
--- a/src/compiler/glsl/cache.h
+++ b/src/compiler/glsl/cache.h
@@ -139,6 +139,11 @@ cache_create(void)
}
static inline void
+cache_destroy(struct program_cache *cache) {
+ return;
+}
+
+static inline void
cache_put(struct program_cache *cache, cache_key key,
const void *data, size_t size)
{