android: aco: add aco_ir.cpp to Makefile.sources
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 11 Jun 2020 06:17:02 +0000 (08:17 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 11 Jun 2020 18:00:16 +0000 (20:00 +0200)
Fixes the following building errors:

FAILED: out/target/product/x86_64/obj/SHARED_LIBRARIES/vulkan.radv_intermediates/LINKED/vulkan.radv.so
...
ld.lld: error: undefined symbol: aco::can_use_SDWA(chip_class, std::__1::unique_ptr<aco::Instruction, aco::instr_deleter_functor> const&)
...
ld.lld: error: undefined symbol: aco::can_use_opsel(chip_class, aco_opcode, int, bool)
...
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

Fixes: d9cfb8ad ("aco: validate instructions reading/writing upper halves/bytes")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5425>

src/amd/Makefile.sources

index 78e93e5f1b70a67fbdda0a3def03aff7ab1f44b7..8fe37409c5fbcf75a3ebca0e76f72fd783952d34 100644 (file)
@@ -79,6 +79,7 @@ ACO_FILES = \
        compiler/aco_instruction_selection_setup.cpp \
        compiler/aco_interface.cpp \
        compiler/aco_interface.h \
+       compiler/aco_ir.cpp \
        compiler/aco_ir.h \
        compiler/aco_assembler.cpp \
        compiler/aco_insert_exec_mask.cpp \