Android build changes to avoid the following building error:

external/mesa/src/gallium/drivers/radeonsi/si_shader_nir.c:505:
error: undefined reference to 'ac_nir_translate'

Fixes: 86d4b46d66 "ac/common: always build NIR translation"
---
 src/amd/Android.common.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/Android.common.mk b/src/amd/Android.common.mk
index 39d2732fd9..7d08bfd31d 100644
--- a/src/amd/Android.common.mk
+++ b/src/amd/Android.common.mk
@@ -31,7 +31,8 @@ LOCAL_MODULE := libmesa_amd_common
 LOCAL_SRC_FILES := \
        $(AMD_COMMON_FILES) \
        $(AMD_COMPILER_FILES) \
-       $(AMD_DEBUG_FILES)
+       $(AMD_DEBUG_FILES) \
+       $(AMD_NIR_FILES)
 
 LOCAL_CFLAGS += -DFORCE_BUILD_AMDGPU   # instructs LLVM to declare 
LLVMInitializeAMDGPU* functions
 
-- 
2.11.0

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to