android: amd/common: fix missing include path
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 5 May 2019 16:43:33 +0000 (18:43 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Fri, 14 Jun 2019 16:36:10 +0000 (18:36 +0200)
Fixes the following building error in Android:

In file included from external/mesa/src/amd/common/ac_llvm_helper.cpp:34:
In file included from external/mesa/src/amd/common/ac_llvm_build.h:30:
In file included from external/mesa/src/compiler/nir/nir.h:40:
In file included from external/mesa/src/compiler/nir_types.h:36:
external/mesa/src/compiler/glsl_types.h:37:10: fatal error: 'main/config.h' file not found
         ^~~~~~~~~~~~~~~
1 error generated.

Fixes: bd4c661 ("ac,ac/nir: use a better sync scope for shared atomics")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/amd/Android.common.mk

index fe0721a..54180f1 100644 (file)
@@ -58,6 +58,7 @@ LOCAL_C_INCLUDES := \
        $(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_nir,,)/nir \
        $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/gallium/auxiliary \
+       $(MESA_TOP)/src/mesa \
        $(intermediates)/common
 
 LOCAL_EXPORT_C_INCLUDE_DIRS := \