projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08d1f13
)
iris: disable __gen_validate_value in release mode
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 7 Jun 2018 22:33:52 +0000
(15:33 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:06 +0000
(10:26 -0800)
src/gallium/drivers/iris/iris_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_state.c
b/src/gallium/drivers/iris/iris_state.c
index 702c6ce0c0fec3ae9b6cf9c00307bc946eb97534..f3a73aeb81af718b724dbbb28e97e1c7b6d212b7 100644
(file)
--- 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>
-#if
def
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