util/perf: Add gpuvis integration.

Initial integration, still needs the init functions to be changed
across the codebase.

For the context usage https://github.com/mikesart/gpuvis/pull/82 is
needed to display it correctly in gpuvis.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22505>
This commit is contained in:
Bas Nieuwenhuizen
2023-04-14 14:07:40 +02:00
parent ff3db3e6cf
commit 11198951e6
7 changed files with 944 additions and 6 deletions

View File

@@ -2080,6 +2080,11 @@ if with_perfetto
pre_args += '-DHAVE_PERFETTO'
endif
with_gpuvis = get_option('gpuvis')
if with_gpuvis
pre_args += '-DHAVE_GPUVIS'
endif
add_project_arguments(pre_args, language : ['c', 'cpp'])
add_project_arguments(c_cpp_args, language : ['c', 'cpp'])