amd/addrlib: fix build on non-x86 platforms
authorGreg V <greg@unrelenting.technology>
Sun, 26 Jan 2020 11:22:45 +0000 (14:22 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 26 Feb 2020 20:10:52 +0000 (20:10 +0000)
commit56f31328f207f310ee9b53f3294a23b25b2687e0
tree19c1210c60b473e37a9b0b9fdb51eeb79fb0f5e2
parentc798aae7390f20e74b8ebb09113e806b410ac7a7
amd/addrlib: fix build on non-x86 platforms

regparm(0) attribute does not work on aarch64 (and presumably powerpc64 and others).
Default to not specifying any calling convention on non-amd64/i386 platforms.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3567>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3567>
src/amd/addrlib/inc/addrtypes.h