i965: Add a weak no-op nir_print_instr() symbol
authorMatt Turner <mattst88@gmail.com>
Mon, 1 May 2017 18:43:07 +0000 (11:43 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 15 May 2017 18:43:01 +0000 (11:43 -0700)
commitaae2626be8a1e6ba976a0dc51141e73c4e4b3473
tree1f59a73c37f57970c71ef506032ae6d52e9862bd
parentd98e82c77269e98669c883e382682af826bf813d
i965: Add a weak no-op nir_print_instr() symbol

intel_asm_annotation.c is part of libintel_compiler.la, which contains
code for disassembling and validating shaders that we want to call in
aubinator_error_decode.

dump_assembly() calls nir_print_instr() to print annotations, and
although dump_assembly() is not called by aubinator_error_decode (nor is
any function in intel_asm_annotation.c) it causes undefined references
to nir_print_instr().

To work around, provide a no-op weak symbol to resolve against.
src/intel/compiler/intel_asm_annotation.c