freedreno/registers: split header build into subdirs
authorRob Clark <robdclark@chromium.org>
Sun, 2 Aug 2020 18:35:48 +0000 (11:35 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Aug 2020 19:46:49 +0000 (19:46 +0000)
commit62ebd342e67fc0c12b181f91a488fa7a834fff6c
treec6f2a8ac7defa8914c9b5d7e8f75d2ac204a2e74
parente59b24121357f33f17519b9e90b46928ade0a290
freedreno/registers: split header build into subdirs

Instead of building the adreno/foo.xml headers from the toplevel, split
out a subdir().  This fits better with how meson likes things to be
structured.  But it does require fixing a bit about how gen_header.py
resolves imports, ie. it cannot assume the src file is at the root of
the $RNN_PATH.

This is needed for the next patch, to add support for installing the
register database for use with installed tools.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6154>
src/freedreno/computerator/a6xx.c
src/freedreno/computerator/main.h
src/freedreno/meson.build
src/freedreno/registers/adreno/meson.build [new file with mode: 0644]
src/freedreno/registers/gen_header.py
src/freedreno/registers/meson.build
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_cs.h
src/freedreno/vulkan/tu_formats.c
src/freedreno/vulkan/tu_query.c