android: aco: fix PIPE_FORMAT related building errors
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/amd/compiler/aco_dead_code_analysis.cpp:25:
In file included from external/mesa/src/amd/compiler/aco_ir.h:33:
In file included from external/mesa/src/compiler/nir/nir.h:40:
external/mesa/src/util/format/u_format.h:33:10: fatal error: 'pipe/p_format.h' file not found
#include "pipe/p_format.h"
         ^~~~~~~~~~~~~~~~~
...
In file included from external/mesa/src/amd/compiler/aco_dominance.cpp:31:
In file included from external/mesa/src/amd/compiler/aco_ir.h:33:
In file included from external/mesa/src/compiler/nir/nir.h:40:
external/mesa/src/util/format/u_format.h:33:10: fatal error: 'pipe/p_format.h' file not found
#include "pipe/p_format.h"
         ^~~~~~~~~~~~~~~~~
...
In file included from external/mesa/src/amd/compiler/aco_instruction_selection.cpp:31:
In file included from external/mesa/src/amd/common/ac_shader_util.h:32:
In file included from external/mesa/src/compiler/nir/nir.h:40:
external/mesa/src/util/format/u_format.h:33:10: fatal error: 'pipe/p_format.h' file not found
#include "pipe/p_format.h"
         ^~~~~~~~~~~~~~~~~
3 errors generated.

Fixes: 8d07d661 ("glsl,nir: Switch the enum representing shader image formats to PIPE_FORMAT.")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
src/amd/Android.compiler.mk

index a62c93d9d33555abb3c92df235b73a2c2002b4da..3f544ac3cf15d71158744cdf3eee026d5d545091 100644 (file)
@@ -72,6 +72,7 @@ LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/amd/common \
        $(MESA_TOP)/src/amd/compiler \
        $(MESA_TOP)/src/compiler/nir \
        $(MESA_TOP)/src/amd/common \
        $(MESA_TOP)/src/amd/compiler \
        $(MESA_TOP)/src/compiler/nir \
+       $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa \
        $(intermediates)/compiler
        $(MESA_TOP)/src/mapi \
        $(MESA_TOP)/src/mesa \
        $(intermediates)/compiler