amd: Pass addrlib cpp args to the tests

The declaration and definition used by tests otherwise differs from
addrlib.
Found by LTO -Werror=lto-type-mismatch.

Fixes: 1d69c0419b ("amd/addrlib: prevent defining regparm differently")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31613>
(cherry picked from commit d14d3c5bdd)
This commit is contained in:
David Heidelberg 2024-10-13 02:19:16 -04:00 committed by Eric Engestrom
parent 97aba55da9
commit e3cd0dcb15
2 changed files with 3 additions and 1 deletions

View file

@ -114,7 +114,7 @@
"description": "amd: Pass addrlib cpp args to the tests",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "1d69c0419b39952ec9ad869fbec58be1c033cdb6",
"notes": null

View file

@ -153,6 +153,7 @@ if with_tests and not with_platform_windows
include_directories : [
inc_amd, inc_include, inc_src,
],
c_args : cpp_args_addrlib,
dependencies: [idep_amdgfxregs_h, dep_libdrm_amdgpu, idep_mesautil],
),
suite: ['amd']
@ -169,6 +170,7 @@ if with_tests and not with_platform_windows
include_directories : [
inc_amd, inc_include, inc_src,
],
c_args : cpp_args_addrlib,
dependencies: [idep_amdgfxregs_h, dep_libdrm_amdgpu, idep_mesautil, dep_openmp],
),
suite: ['amd']