Mesa (staging/21.0): android: gallium/radeonsi: add nir include path
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 27 16:37:52 UTC 2021
Module: Mesa
Branch: staging/21.0
Commit: 8b78ecbff00bab8a3eca8b5d958262d2b3559e10
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b78ecbff00bab8a3eca8b5d958262d2b3559e10
Author: Mauro Rossi <issor.oruam at gmail.com>
Date: Sun Apr 25 15:48:28 2021 +0200
android: gallium/radeonsi: add nir include path
Since generated nir headers are included, it makes sense to include nir path
Fixes the following building error:
FAILED: out/target/product/x86_64/obj/STATIC_LIBRARIES/libmesa_pipe_radeonsi_intermediates/si_shader_nir.o
...
In file included from external/mesa/src/gallium/drivers/radeonsi/si_shader_nir.c:26:
external/mesa/src/amd/common/ac_nir.h:29:10: fatal error: 'nir.h' file not found
^~~~~~~
1 error generated.
Cc: 21.0 21.1 <mesa-stable at lists.freedesktop.org>
Fixes: 1c702a82397b ("ac: move ac_lower_indirect_derefs() outside of the LLVM dir")
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10443>
(cherry picked from commit e213bfd3304856b671ef62fb5d144a8f5673cf78)
---
.pick_status.json | 2 +-
src/gallium/drivers/radeonsi/Android.mk | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.pick_status.json b/.pick_status.json
index eacfb84573a..c39e94b5e19 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -508,7 +508,7 @@
"description": "android: gallium/radeonsi: add nir include path",
"nominated": true,
"nomination_type": 0,
- "resolution": 0,
+ "resolution": 1,
"master_sha": null,
"because_sha": "1c702a82397bb0c84bee1478912c0e5b69f95eb5"
},
diff --git a/src/gallium/drivers/radeonsi/Android.mk b/src/gallium/drivers/radeonsi/Android.mk
index 1c1106dd85b..75f30f6212f 100644
--- a/src/gallium/drivers/radeonsi/Android.mk
+++ b/src/gallium/drivers/radeonsi/Android.mk
@@ -39,6 +39,7 @@ LOCAL_MODULE_CLASS := STATIC_LIBRARIES
LOCAL_C_INCLUDES := \
$(MESA_TOP)/src/amd/common \
$(MESA_TOP)/src/amd/llvm \
+ $(MESA_TOP)/src/compiler/nir \
$(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_amd_common,,)/common \
$(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_nir,,)/nir
More information about the mesa-commit
mailing list