summaryrefslogtreecommitdiff
path: root/src/intel/tools/meson.build
AgeCommit message (Collapse)AuthorFilesLines
8 hoursintel/tools/error2hangdump: Add Xe KMD supportJosé Roberto de Souza1-1/+5
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28720>
8 hoursintel/tools/error2hangdump: Move code that will be shared with Xe parser to ↵José Roberto de Souza1-0/+2
error2hangdump_lib No changes in behavior expected here. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28720>
8 hoursintel/tools: Move ascii85_decode_char() to error_decode_libJosé Roberto de Souza1-2/+10
This was re-implemented in several places, so lets share it. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28720>
8 hoursintel/tools: Move Xe KMD error decode functions to a separated fileJosé Roberto de Souza1-1/+3
This functions are now used by aubinator_error_decode but will also be used by error2hangdump tool. More functions will be moved in the next patches. No changes in behavior expected here. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28720>
2024-02-29intel/meson: Add dependencies for brw and elkCaio Oliveira1-11/+15
Instead of link_with, use meson dependency for the compilers. Will be useful later to propagate some extra dependencies. Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27865>
2024-02-27intel/tools/error_decode: Move code that can be shared between i915 and Xe ↵José Roberto de Souza1-0/+2
error decoders Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27661>
2024-02-24intel/meson: Rename libintel_compiler to libintel_compiler_brwCaio Oliveira1-6/+6
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27563>
2024-02-24intel/tools: Add ELK support for intel_hang_viewerCaio Oliveira1-1/+2
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27563>
2024-02-24intel/tools: Add ELK support for aubinator_viewerCaio Oliveira1-1/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27563>
2024-02-24intel/tools: Add ELK support for intel_hang_replayCaio Oliveira1-1/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27563>
2024-02-24intel/tools: Add ELK support for aubinator_error_decodeCaio Oliveira1-2/+3
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27563>
2024-02-24intel/tools: Add ELK support for aubinatorCaio Oliveira1-3/+4
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27563>
2024-02-24intel/decoder: Add ELK supportCaio Oliveira1-4/+4
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27563>
2024-02-21intel/tools/error_decode: Detect and split error dump file parsing by KMDJosé Roberto de Souza1-1/+3
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27728>
2024-02-16intel/decoder: Move decoder to a separate moduleCaio Oliveira1-5/+15
Depends on both intel/common and intel/compiler. Breaks circular dependency between these two modules. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27647>
2024-02-15intel/tools: add shader compiler hash key to json devinfo formatMark Janes1-1/+2
Offline shader compilation will use json as the source configuration to accurately instantiate mesa for target hardware. Similar platforms generate identical shader binaries even though intel_device_info differs inconsequenially. Include the shader compilation hash key to device info json files, so these platforms can be deduplicated. Closes: #6746 Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26844>
2024-02-15intel/tools: move intel_dev_info to intel/toolsMark Janes1-0/+12
This is a more sensible home for intel_dev_info. Offline shader compilation will take intel_dev_info json files as input. For that use case, the shader compiler hash value is needed in the json file. intel_dev_info will depend on intel/compiler, and must be located in intel/tools to break a circular meson dependency. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26844>
2024-02-15intel: Rename i965_{asm,disasm} tools to brw_{asm,disasm}Caio Oliveira1-80/+0
And move them inside the compiler since they (especially asm) rely on a bunch of internal types. Acked-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27579>
2024-02-13intel/tools: load json device info in drm_shimMark Janes1-2/+2
Enable drm_shim to parse a serialized intel_device_info structure from json. When overriding the gpu hardware, drm_shim provides the stubbed intel_device_info structure to mesa through an unused ioctl. Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27557>
2024-02-13intel/tools: add intel device meson dependenciesMark Janes1-6/+5
idep_intel_dev ensures that headers are generated before dependent source files are compiled. Some tools have been building without that dependency, and encounter intermittent compilation errors on sufficiently parallel builds. Any target which depends on idep_intel_dev will link with libintel_dev. Redundant link instructions can be removed. Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10604 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27600>
2024-01-09intel/tools/tests: Add i965_asm tests for gfx12 and gfx12.5Sviatoslav Peleshko1-0/+2
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25657>
2024-01-09intel/tools/tests: Unbreak i965_asm testsSviatoslav Peleshko1-1/+2
Currently it's searching for test cases in the nonexistent folders, and because there are none, tests always pass. Point the script onto the correct ones. And while we're at it, add a check to make sure this situation won't repeat in the future. Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25657>
2023-12-05intel/hang_replay: fix compile race with generated filesLionel Landwerlin1-1/+1
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: 03712579b0 ("intel/tools: add hang_replay tool") Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26510>
2023-12-04intel/tools: hang viewer/editorLionel Landwerlin1-0/+12
Acked-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21167>
2023-12-04intel: add error2hangdump toolLionel Landwerlin1-0/+11
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21167>
2023-12-04intel/tools: add hang_replay toolLionel Landwerlin1-0/+11
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21167>
2023-08-03intel/compiler,intel/blorp,intel/vulkan: decouple vulkan driver and compiler ↵Yonggang Luo1-2/+2
from gallium Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24438>
2023-03-02intel/dev: create a helper dependency for libintel_devDylan Baker1-18/+16
This ensures that users of libintel_dev.a won't be compiled until include files are generated, and that they are recompiled when the header changes. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Mark Janes <markjanes@swizzler.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20825>
2023-02-27meson: Use sse2_arg and sse2_args to replace usage of c and c_sse2_argsYonggang Luo1-1/+1
And now c_sse2_arg and c_sse2_args are remvoed Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21375>
2022-11-07intel: Add and use intel_gem_get_param()José Roberto de Souza1-1/+1
Again sharing the same function across all Intel drivers. Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19425>
2022-08-12intel: Fixes compile error of aubinator_viewer.cpp with gccYonggang Luo1-1/+1
Remove '-Wno-class-memaccess' from cpp_args because clang don't support this option aubinator_viewer.cpp:1183:39: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct Context'; use assignment or value-initialization instead [-Werror=class-memaccess] 1183 | memset(&context, 0, sizeof(context)); Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18024>
2022-04-18Use proper types for meson objectsilliliti1-1/+1
Fix invalid usage of meson objects which violates official meson specification and thus breaks muon, an implementation of meson written in C. Reviewed-by: Mihai Preda <mhpreda@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15715>
2021-04-20intel: Rename gen_context.h to intel_context.hAnuj Phogat1-1/+1
export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965 grep -E "gen_context" -rIl $SEARCH_PATH | xargs sed -ie "s/gen_context\.h/intel_context\.h/g" Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10241>
2021-04-13glsl: build without bisonElla-01-4/+14
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8739>
2021-04-02intel: Rename genx keyword to gfxx in build filesAnuj Phogat1-9/+9
Commands used to do the changes: export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965" find $SEARCH_PATH -type f \( -name "*.mk" -o -name "*.sources" -o -name "*.build" \) | xargs sed -ie "s/gen\([[:digit:]]\+\)/gfx\1/g" Exclude --device-prefix, xml and _pack.h changes in this patch: find $SEARCH_PATH -type f \( -name "*.mk" -o -name "*.sources" -o -name "*.build" \) | xargs sed -ie "s/gfx\([[:digit:]]\+_pack\.h\)/gen\1/g" find $SEARCH_PATH -type f \( -name "*.mk" -o -name "*.sources" -o -name "*.build" \) | xargs sed -ie "s/gfx\([[:digit:]]\+\.xml\)/gen\1/g" Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9936>
2021-04-02intel: Rename genx keyword in filenames to gfxxAnuj Phogat1-1/+1
Commands used to do the changes: export SEARCH_PATH="src/intel src/gallium/drivers/iris src/mesa/drivers/dri/i965" find $SEARCH_PATH -type f -name "*gen[[:digit:]]*.*[cph]" -exec sh -c 'f="{}"; mv -- "$f" "${f/gen/gfx}"' \; grep -E "gen[[:digit:]]+_[[:alnum:]_]*\.(c|h|cpp)" -rIl $SEARCH_PATH | xargs sed -ie "s/gen\([[:digit:]]\+_[[:alnum:]_]*\.\)\(c\|h\|cpp\)/gfx\1\2/g" grep -E "_gen[[:digit:]]+[[:alnum:]_]*\.(c|h|cpp)" -rIl $SEARCH_PATH | xargs sed -ie "s/\(_\)gen\([[:digit:]]\+[[:alnum:]_]*\.\)\(c\|h\|cpp\)/\1gfx\2\3/g" grep -E "GEN[[:digit:]]+[[:alnum:]_]*_H( |$)" -rIl $SEARCH_PATH | xargs sed -ie "s/GEN\([[:digit:]]\+[[:alnum:]_]*_H\)\( \|$\)/GFX\1\2/g" Exclude the "_pack.h" changes: grep -E "gfx[[:digit:]]+_pack\.h" -rIl $SEARCH_PATH | xargs sed -ie "s/gfx\([[:digit:]]\+_pack\.h\)/gen\1/g" Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9936>
2021-03-11intel/tools: fix meson warningLionel Landwerlin1-1/+1
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4434 Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9524>
2020-09-02intel/eu: Include brw_compiler.h in brw_eu.hJason Ekstrand1-2/+2
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6244>
2020-08-07intel/dump_gpu: add an option to capture a single frameLionel Landwerlin1-1/+1
We use the driver identifier buffer to get the information about the current frame. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2201>
2020-06-13intel/tools: rewrite run-test.sh in pythonEric Engestrom1-13/+20
Old script created files in the source directory, which is generally considered bad form. The rewrite to python instead of duct-taping around in the shell script goes towards the goal of only having cross-platform python scripts, which is also harder to make mistakes in than shell scripts. Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5155>
2020-06-01meson: use 2 space not 3 space indentDylan Baker1-31/+33
Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
2020-06-01meson: use gnu_symbol_visibility argumentDylan Baker1-10/+19
This uses a meson builtin to handle -fvisibility=hidden. This is nice because we don't need to track which languages are used, if C++ is suddenly added meson just does the right thing. Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
2020-04-30intel: add stub_gpu toolLionel Landwerlin1-0/+24
Run shaderdb like this : intel_stub_gpu -p bxt ./run ./shaders/* List of platform names is available from gen_device_name_to_pci_device_id() (src/intel/dev/gen_device_info.c). v2: Add missing getparam support Raise max soft limit of file descriptors Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4594>
2020-03-28intel: drop unused include directoriesEric Engestrom1-9/+9
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4360> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4360>
2020-03-28meson: inline `inc_common`Eric Engestrom1-9/+9
Let's make it clear what includes are being added everywhere, so that they can be cleaned up. Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4360>
2019-08-03meson: replace libmesa_util with idep_mesautilEric Engestrom1-13/+14
This automates the include_directories and dependencies tracking so that all users of libmesa_util don't need to add them manually. Next commit will remove the ones that were only added for that reason. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Acked-by: Eric Anholt <eric@anholt.net> Tested-by: Vinson Lee <vlee@freedesktop.org>
2019-07-01intel/tools: Add assembler unit tests for ROL/ROR instructionsSagar Ghuge1-0/+1
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2019-05-07intel/tools: Add unit tests for assemblerSagar Ghuge1-0/+18
v1: Pass executable object from meson to test(Dylan Baker) v2: Ignore generated output files from git status(Matt Turner) Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2019-05-07intel/tools: Add meson pthread dependancy for i965_asmMika Kuoppala1-0/+1
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2019-05-07intel/tools: New i965 instruction assembler toolSagar Ghuge1-0/+26
Tool is inspired from igt's assembler tool. Thanks to Matt Turner, who mentored me through out this project. v2: Fix memory leaks and naming convention (Caio) v3: Fix meson changes (Dylan Baker) v4: Fix usage options (Matt Turner) Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/141