This fixes the following compilation error when amdgpu is not selected.

  CC       common/common_libamd_common_la-ac_gpu_info.lo
In file included from common/ac_gpu_info.c:26:0:
common/ac_gpu_info.h:31:10: fatal error: amdgpu.h: No such file or directory
 #include <amdgpu.h>
          ^~~~~~~~~~
compilation terminated.

Signed-off-by: Marc Dietrich <[email protected]>
---
 src/amd/Makefile.common.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/Makefile.common.am b/src/amd/Makefile.common.am
index dff461c35d..677fd52975 100644
--- a/src/amd/Makefile.common.am
+++ b/src/amd/Makefile.common.am
@@ -26,6 +26,7 @@ COMMON_LIBS = common/libamd_common.la
 # TODO cleanup these
 common_libamd_common_la_CPPFLAGS = \
        $(AMDGPU_CFLAGS) \
+       $(RADEON_CFLAGS) \
        $(VALGRIND_CFLAGS) \
        $(DEFINES) \
        -I$(top_srcdir)/include \
-- 
2.12.2

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to