diff options
author | Eric Anholt <[email protected]> | 2018-06-21 15:45:30 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-06-21 15:46:40 -0700 |
commit | ee9a6a13fb3af78a2aa38492089ef934203d0790 (patch) | |
tree | 7be9b7c15154b162a730ee542ea0f552871f6933 /src/broadcom/cle | |
parent | a2790b134a912b84389022b96ef0ef78a7d2b83c (diff) |
v3d, vc4: Disable valgrind checking of CLE inputs when NDEBUG is set.
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.")
Diffstat (limited to 'src/broadcom/cle')
-rw-r--r-- | src/broadcom/cle/v3d_packet_helpers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/broadcom/cle/v3d_packet_helpers.h b/src/broadcom/cle/v3d_packet_helpers.h index bc1bf3eb76e..4720f643328 100644 --- 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 |