android: intel: Print GPU timing data based on INTEL_MEASURE
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 5 Feb 2021 22:06:32 +0000 (23:06 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Sat, 6 Feb 2021 10:06:13 +0000 (11:06 +0100)
Fixes the following building errors in Android:

FAILED: out/target/product/x86_64/obj/SHARED_LIBRARIES/vulkan.android-x86_intermediates/LINKED/vulkan.android-x86.so
...
ld.lld: error: undefined symbol: intel_measure_init
ld.lld: error: undefined symbol: intel_measure_state_changed
ld.lld: error: undefined symbol: intel_measure_snapshot_string
ld.lld: error: undefined symbol: intel_measure_gather
ld.lld: error: undefined symbol: intel_measure_frame_transition

Fixes: 0f4143ec3787 ("intel: Print GPU timing data based on INTEL_MEASURE")

Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8887>

src/intel/Makefile.sources

index 737f73a..d2525a4 100644 (file)
@@ -27,7 +27,9 @@ COMMON_FILES = \
        common/gen_sample_positions.c \
        common/gen_sample_positions.h \
        common/gen_uuid.c \
-       common/gen_uuid.h
+       common/gen_uuid.h \
+       common/intel_measure.c \
+       common/intel_measure.h
 
 COMPILER_FILES = \
        compiler/brw_cfg.cpp \