android: r600/sfn: fix includes and libmesa_nir dependency
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 22 Feb 2020 15:20:10 +0000 (16:20 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Wed, 4 Mar 2020 21:25:36 +0000 (22:25 +0100)
Fixes the following building errors:

In file included from external/mesa/src/gallium/drivers/r600/sfn/sfn_debug.cpp:28:
In file included from external/mesa/src/gallium/drivers/r600/sfn/sfn_debug.h:34:
In file included from external/mesa/src/compiler/nir/nir.h:41:
In file included from external/mesa/src/compiler/nir_types.h:36:
external/mesa/src/compiler/glsl_types.h:38:10: fatal error: 'main/config.h' file not found
#include "main/config.h"
         ^~~~~~~~~~~~~~~
1 error generated.

In file included from external/mesa/src/gallium/drivers/r600/sfn/sfn_debug.cpp:28:
In file included from external/mesa/src/gallium/drivers/r600/sfn/sfn_debug.h:34:
external/mesa/src/compiler/nir/nir.h:50:10: fatal error: 'nir_opcodes.h' file not found
#include "nir_opcodes.h"
         ^~~~~~~~~~~~~~~
1 error generated.

Fixes: f718ac62 ("r600/sfn: Add a basic nir shader backend")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/r600/Android.mk

index 19a3ba8209f3894af4dedf44285f3b744652567a..296aa3ac9b9c9bd96033d90c793bcfaf403a1484 100644 (file)
@@ -32,8 +32,10 @@ LOCAL_SRC_FILES := $(C_SOURCES) $(CXX_SOURCES)
 
 LOCAL_C_INCLUDES += \
     $(MESA_TOP)/src/amd/common \
 
 LOCAL_C_INCLUDES += \
     $(MESA_TOP)/src/amd/common \
-    $(MESA_TOP)/src/amd/llvm
+    $(MESA_TOP)/src/amd/llvm \
+    $(MESA_TOP)/src/mesa
 
 
+LOCAL_STATIC_LIBRARIES := libmesa_nir
 LOCAL_SHARED_LIBRARIES := libdrm_radeon
 LOCAL_MODULE := libmesa_pipe_r600
 
 LOCAL_SHARED_LIBRARIES := libdrm_radeon
 LOCAL_MODULE := libmesa_pipe_r600