summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2016-10-07 13:57:44 -0700
committerVinson Lee <[email protected]>2016-10-10 11:17:31 -0700
commit0a898ec28bf1bd1bd302c881af13a02b557acb07 (patch)
tree36fdb08cca71b9950d1d0bf471bc8244580a11fb
parentf8f6f60a362d067c9e72cf675736b35730e06a0d (diff)
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 <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
-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 78df32b6c54..d804169c656 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)
{