diff options
author | Ian Romanick <[email protected]> | 2016-10-05 13:21:53 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-10-07 11:19:37 -0700 |
commit | f546b41f6ac9b4394b931d9e0ac4e30fc3f2c40f (patch) | |
tree | 8324800f59aecd3ae2e30f01f521e305851b0f8e /src/compiler/glsl | |
parent | eb23de61162d83238e0a93ff10e3f6bdafb364fb (diff) |
glsl: Let cache_test build when the shader cache is not enabled
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Tested-by: Aaron Watry <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/tests/cache_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c index 1b0403caca6..724dfcd7753 100644 --- a/src/compiler/glsl/tests/cache_test.c +++ b/src/compiler/glsl/tests/cache_test.c @@ -36,6 +36,7 @@ bool error = false; +#ifdef ENABLE_SHADER_CACHE void _mesa_warning(void *ctx, const char *fmt, ...); @@ -397,10 +398,12 @@ test_put_key_and_get_key(void) cache_destroy(cache); } +#endif /* ENABLE_SHADER_CACHE */ int main(void) { +#ifdef ENABLE_SHADER_CACHE int err; test_cache_create(); @@ -411,6 +414,7 @@ main(void) err = rmrf_local(CACHE_TEST_TMP); expect_equal(err, 0, "Removing " CACHE_TEST_TMP " again"); +#endif /* ENABLE_SHADER_CACHE */ return error ? 1 : 0; } |