amd/addrlib: fix another C++ one definition rule violation
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 27 Jun 2020 23:29:40 +0000 (01:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 10:54:01 +0000 (10:54 +0000)
Clashes with the SI definition.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3116
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5673>

src/amd/addrlib/src/chip/gfx10/gfx10_gb_reg.h
src/amd/addrlib/src/gfx10/gfx10addrlib.cpp

index 8526171c7bcda206555b3580137471d7ec36fdf0..93f250716b6298a2acc00cc08fb9b33416cc17df 100644 (file)
@@ -45,7 +45,7 @@
 #define BIGENDIAN_CPU
 #endif
 
-union GB_ADDR_CONFIG
+union GB_ADDR_CONFIG_gfx10
 {
     struct
     {
index 4033c2398d7b9e29c23958c17817510a31dbfe4d..ec05f3a3dd8cf659d664966b45e1c7f67ab9f2e6 100644 (file)
@@ -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;