iris: Push heavy memchecker code to DEBUG
[mesa.git] / src / gallium / drivers / iris / iris_state.c
index e5f231158fcffa46714c539427c40fead760460b..4ab3662da7b42a3c20cb9b0a4b0c55d776a77e85 100644 (file)
@@ -77,7 +77,7 @@
 #include <valgrind.h>
 #include <memcheck.h>
 #define VG(x) x
-#ifndef NDEBUG
+#ifdef DEBUG
 #define __gen_validate_value(x) VALGRIND_CHECK_MEM_IS_DEFINED(&(x), sizeof(x))
 #endif
 #else