From: Kenneth Graunke Date: Thu, 7 Jun 2018 22:33:52 +0000 (-0700) Subject: iris: disable __gen_validate_value in release mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92de0f5aa65bbf11e10f6980fcf735ebe5aa0713;p=mesa.git iris: disable __gen_validate_value in release mode --- 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 #include -#ifdef HAVE_VALGRIND +#if HAVE_VALGRIND #include #include #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