summaryrefslogtreecommitdiffstats
path: root/src/amd/addrlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/addrlib')
-rw-r--r--src/amd/addrlib/core/addrcommon.h15
-rw-r--r--src/amd/addrlib/meson.build2
2 files changed, 3 insertions, 14 deletions
diff --git a/src/amd/addrlib/core/addrcommon.h b/src/amd/addrlib/core/addrcommon.h
index 62f8ac61618..99bb62e77f4 100644
--- a/src/amd/addrlib/core/addrcommon.h
+++ b/src/amd/addrlib/core/addrcommon.h
@@ -40,7 +40,7 @@
#include <string.h>
#include <assert.h>
-#if BRAHMA_BUILD && !defined(DEBUG)
+#if !defined(DEBUG)
#ifdef NDEBUG
#define DEBUG 0
#else
@@ -73,18 +73,7 @@
#define ADDR_ANALYSIS_ASSUME(expr) do { (void)(expr); } while (0)
#endif
-#if BRAHMA_BUILD
- #define ADDR_ASSERT(__e) assert(__e)
-#elif DEBUG
- #define ADDR_ASSERT(__e) \
- do { \
- ADDR_ANALYSIS_ASSUME(__e); \
- if ( !((__e) ? TRUE : FALSE)) { ADDR_DBG_BREAK(); } \
- } while (0)
-#else //DEBUG
- #define ADDR_ASSERT(__e) ADDR_ANALYSIS_ASSUME(__e)
-#endif //DEBUG
-
+#define ADDR_ASSERT(__e) assert(__e)
#define ADDR_ASSERT_ALWAYS() ADDR_DBG_BREAK()
#define ADDR_UNHANDLED_CASE() ADDR_ASSERT(!"Unhandled case")
#define ADDR_NOT_IMPLEMENTED() ADDR_ASSERT(!"Not implemented");
diff --git a/src/amd/addrlib/meson.build b/src/amd/addrlib/meson.build
index 1a7f2fdef5d..ed0dde6245b 100644
--- a/src/amd/addrlib/meson.build
+++ b/src/amd/addrlib/meson.build
@@ -56,5 +56,5 @@ libamdgpu_addrlib = static_library(
include_directories : include_directories(
'core', 'inc/chip/gfx9', 'inc/chip/r800', 'gfx9/chip', 'r800/chip',
'../common', '../../'),
- cpp_args : [cpp_vis_args, '-DBRAHMA_BUILD=1'],
+ cpp_args : cpp_vis_args,
)