[Mesa 20.0.0-rc1 regression] AMD driver fails to build on non-x86 platforms
The AMD driver fails to build on ARM non-x86 platforms because of unconditional use of the regparm attribute. This error is from clang 10.0-rc1, but I'd assume gcc does the same given regparm in x86-only.
In file included from ../src/amd/addrlib/src/gfx10/gfx10addrlib.cpp:34:
In file included from ../src/amd/addrlib/src/gfx10/gfx10addrlib.h:37:
In file included from ../src/amd/addrlib/src/core/addrlib2.h:37:
In file included from ../src/amd/addrlib/src/core/addrlib.h:37:
../src/amd/addrlib/inc/addrinterface.h:218:16: error: 'regparm' is not valid on this platform
typedef VOID* (ADDR_API* ADDR_ALLOCSYSMEM)(
^~~~~~~~
../src/amd/addrlib/inc/addrtypes.h:118:18: note: expanded from macro 'ADDR_API'
#define ADDR_API ADDR_FASTCALL //default call convention is fast call
^~~~~~~~~~~~~
../src/amd/addrlib/inc/addrtypes.h:93:46: note: expanded from macro 'ADDR_FASTCALL'
#define ADDR_FASTCALL __attribute__((regparm(0)))
^ ~