diff options
author | Kenneth Graunke <[email protected]> | 2018-06-07 15:33:52 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:06 -0800 |
commit | 92de0f5aa65bbf11e10f6980fcf735ebe5aa0713 (patch) | |
tree | 14738798d7d6d4b6cc3c0e3fa05fbef04cdffc2e | |
parent | 08d1f138182d6bb64972a11dc92e33fb7b11bfaa (diff) |
iris: disable __gen_validate_value in release mode
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 702c6ce0c0f..f3a73aeb81a 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -23,11 +23,13 @@ #include <stdio.h> #include <errno.h> -#ifdef HAVE_VALGRIND +#if HAVE_VALGRIND #include <valgrind.h> #include <memcheck.h> #define VG(x) x +#ifndef NDEBUG #define __gen_validate_value(x) VALGRIND_CHECK_MEM_IS_DEFINED(&(x), sizeof(x)) +#endif #else #define VG(x) #endif |