projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2790b1
)
v3d, vc4: Disable valgrind checking of CLE inputs when NDEBUG is set.
author
Eric Anholt
<eric@anholt.net>
Thu, 21 Jun 2018 22:45:30 +0000
(15:45 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 21 Jun 2018 22:46:40 +0000
(15:46 -0700)
For a meson -Db_ndebug=true release build on x86_64, reduces text size of
libv3d.a from 53.0k to 51.6k. Inspired by
0d5329d626e3
("anv: Disable
__gen_validate_value if NDEBUG is set.")
src/broadcom/cle/v3d_packet_helpers.h
patch
|
blob
|
history
diff --git
a/src/broadcom/cle/v3d_packet_helpers.h
b/src/broadcom/cle/v3d_packet_helpers.h
index bc1bf3eb76ec94aff16d8646ef1ae8f5dcb21c6b..4720f643328e6e11779e62710dd678e2476f3e86 100644
(file)
--- a/
src/broadcom/cle/v3d_packet_helpers.h
+++ b/
src/broadcom/cle/v3d_packet_helpers.h
@@
-31,7
+31,9
@@
#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