[Mesa-dev] [PATCH] r600: fix compilation error without amdgpu

Marek Olšák maraeo at gmail.com
Mon May 22 16:01:42 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Mon, May 22, 2017 at 11:37 AM, Marc Dietrich <marvin24 at gmx.de> wrote:
> 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 <marvin24 at gmx.de>
> ---
>  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
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list