amd: allow addrlib to enable SIMD if possible

The SIMD variants are way faster, the order of magnitude seems x10.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40996>
This commit is contained in:
Samuel Pitoiset 2026-04-15 17:39:49 +02:00 committed by Marge Bot
parent daeb52d38d
commit aea04d11b7

View file

@ -49,7 +49,7 @@ files_addrlib = files(
)
# Skip the addrlib definition of ADDR_FASTCALL so as not to use regparm.
cpp_args_addrlib = ['-DADDR_FASTCALL=']
cpp_args_addrlib = ['-DADDR_FASTCALL=', '-DADDR_ALLOW_SIMD=1']
if host_machine.endian() == 'little'
cpp_args_addrlib += '-DLITTLEENDIAN_CPU'