[Mesa-dev] [PATCH] glsl: Let cache_test build when the shader cache is not enabled
Timothy Arceri
timothy.arceri at collabora.com
Wed Oct 5 22:20:58 UTC 2016
Thanks for fixing this, I wasn't aware it was broken.
Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
On Wed, 2016-10-05 at 13:22 -0700, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: Timothy Arceri <timothy.arceri at collabora.com>
> ---
> src/compiler/glsl/tests/cache_test.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/compiler/glsl/tests/cache_test.c
> b/src/compiler/glsl/tests/cache_test.c
> index 1b0403c..724dfcd 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;
> }
More information about the mesa-dev
mailing list