amd/addrlib: fix the C++ one definition rule violation

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1854

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5414>
This commit is contained in:
Marek Olšák 2020-06-10 08:53:40 -04:00
parent 27b7b89922
commit 0fcf55329b
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
#define BIGENDIAN_CPU
#endif
union GB_ADDR_CONFIG {
union GB_ADDR_CONFIG_gfx9 {
struct {
#if defined(LITTLEENDIAN_CPU)
unsigned int NUM_PIPES : 3;

View File

@ -1046,7 +1046,7 @@ BOOL_32 Gfx9Lib::HwlInitGlobalParams(
if (m_settings.isArcticIsland)
{
GB_ADDR_CONFIG gbAddrConfig;
GB_ADDR_CONFIG_gfx9 gbAddrConfig;
gbAddrConfig.u32All = pCreateIn->regValue.gbAddrConfig;