From 92de0f5aa65bbf11e10f6980fcf735ebe5aa0713 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 7 Jun 2018 15:33:52 -0700 Subject: [PATCH] iris: disable __gen_validate_value in release mode --- src/gallium/drivers/iris/iris_state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2