amd: remove always-true BRAHMA_BUILD define
authorEric Engestrom <eric.engestrom@imgtec.com>
Fri, 24 Nov 2017 16:23:03 +0000 (16:23 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Fri, 1 Dec 2017 13:49:42 +0000 (13:49 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/Android.addrlib.mk
src/amd/Makefile.addrlib.am
src/amd/addrlib/core/addrcommon.h
src/amd/addrlib/meson.build
src/gallium/winsys/amdgpu/drm/Android.mk

index a29f7c16d1797b5943c4deb167ba460536f21d65..a37112d7154de568c81543b18688aeef2982dcaf 100644 (file)
@@ -30,8 +30,6 @@ LOCAL_MODULE := libmesa_amdgpu_addrlib
 
 LOCAL_SRC_FILES := $(ADDRLIB_FILES)
 
-LOCAL_CFLAGS := -DBRAHMA_BUILD=1
-
 LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src \
        $(MESA_TOP)/src/amd/common \
index 90dfe9634454218bee82bebd83bab11d95e9959b..322a5c86973b9238c74c9c68513b4bf3bcc50342 100644 (file)
@@ -29,8 +29,7 @@ addrlib_libamdgpu_addrlib_la_CPPFLAGS = \
        -I$(srcdir)/addrlib/inc/chip/gfx9 \
        -I$(srcdir)/addrlib/inc/chip/r800 \
        -I$(srcdir)/addrlib/gfx9/chip \
-       -I$(srcdir)/addrlib/r800/chip \
-       -DBRAHMA_BUILD=1
+       -I$(srcdir)/addrlib/r800/chip
 
 addrlib_libamdgpu_addrlib_la_CXXFLAGS = \
        $(VISIBILITY_CXXFLAGS) $(CXX11_CXXFLAGS)
index 62f8ac61618e65db676814cec45101c8fb8cd929..99bb62e77f446f912d356872dd074c8b5e8c5175 100644 (file)
@@ -40,7 +40,7 @@
 #include <string.h>
 #include <assert.h>
 
-#if BRAHMA_BUILD && !defined(DEBUG)
+#if !defined(DEBUG)
 #ifdef NDEBUG
 #define DEBUG 0
 #else
     #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");
index 1a7f2fdef5d8e347b5ad3e191bf6ee9057a4984d..ed0dde6245b3396305fcd61a22b58c57b1285423 100644 (file)
@@ -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,
 )
index a05304ae5dea571e0a6766a1a09c007835aaa47d..6e84a0c8de1a8e503ef4e1551e823383e7150a66 100644 (file)
@@ -30,9 +30,7 @@ include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := $(C_SOURCES)
 
-LOCAL_CFLAGS := \
-       $(AMDGPU_CFLAGS) \
-       -DBRAHMA_BUILD=1
+LOCAL_CFLAGS := $(AMDGPU_CFLAGS)
 
 LOCAL_STATIC_LIBRARIES := libmesa_amdgpu_addrlib