android: pan/bi: Generate instruction printer

To avoid building errors in Android

Fixes: 1893a3805e ("pan/bi: Generate instruction printer")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8294>
This commit is contained in:
Mauro Rossi 2021-01-02 12:01:36 +01:00 committed by Marge Bot
parent 3ae1c6a4fb
commit 0fb8223f29
1 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,7 @@ LOCAL_GENERATED_SOURCES := \
$(intermediates)/bi_generated_pack.h \
$(intermediates)/bi_opcodes.c \
$(intermediates)/bi_opcodes.h \
$(intermediates)/bi_printer.c \
$(MESA_GEN_GLSL_H)
bifrost_nir_algebraic_gen := $(LOCAL_PATH)/bifrost/bifrost_nir_algebraic.py
@ -117,6 +118,13 @@ $(intermediates)/bi_opcodes.h: $(bi_opcodes_h_deps)
@mkdir -p $(dir $@)
$(hide) $(MESA_PYTHON3) $(bi_opcodes_h_gen) $< > $@
bi_printer_c_gen := $(LOCAL_PATH)/bifrost/bi_printer.c.py
bi_printer_c_deps := $(LOCAL_PATH)/bifrost/ISA.xml $(LOCAL_PATH)/bifrost/bifrost_isa.py
$(intermediates)/bi_printer.c: $(bi_printer_c_deps)
@mkdir -p $(dir $@)
$(hide) $(MESA_PYTHON3) $(bi_printer_c_gen) $< > $@
LOCAL_EXPORT_C_INCLUDE_DIRS := \
$(MESA_TOP)/src/panfrost/bifrost/ \