From: Bas Nieuwenhuizen Date: Sat, 27 Jun 2020 23:29:40 +0000 (+0200) Subject: amd/addrlib: fix another C++ one definition rule violation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01986eaf05ca36ddec52c0f7924891c7fc498953;p=mesa.git amd/addrlib: fix another C++ one definition rule violation Clashes with the SI definition. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3116 Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/src/amd/addrlib/src/chip/gfx10/gfx10_gb_reg.h b/src/amd/addrlib/src/chip/gfx10/gfx10_gb_reg.h index 8526171c7bc..93f250716b6 100644 --- a/src/amd/addrlib/src/chip/gfx10/gfx10_gb_reg.h +++ b/src/amd/addrlib/src/chip/gfx10/gfx10_gb_reg.h @@ -45,7 +45,7 @@ #define BIGENDIAN_CPU #endif -union GB_ADDR_CONFIG +union GB_ADDR_CONFIG_gfx10 { struct { diff --git a/src/amd/addrlib/src/gfx10/gfx10addrlib.cpp b/src/amd/addrlib/src/gfx10/gfx10addrlib.cpp index 4033c2398d7..ec05f3a3dd8 100644 --- a/src/amd/addrlib/src/gfx10/gfx10addrlib.cpp +++ b/src/amd/addrlib/src/gfx10/gfx10addrlib.cpp @@ -755,7 +755,7 @@ BOOL_32 Gfx10Lib::HwlInitGlobalParams( const ADDR_CREATE_INPUT* pCreateIn) ///< [in] create input { BOOL_32 valid = TRUE; - GB_ADDR_CONFIG gbAddrConfig; + GB_ADDR_CONFIG_gfx10 gbAddrConfig; gbAddrConfig.u32All = pCreateIn->regValue.gbAddrConfig;