Add addrlib to static linking namespace.
Wrap addrlib in namespace rocr. Remove extern "C" declaration. Change-Id: I9f7fc60df3fc12ca72a71f13561692a8ddf9829c
This commit is contained in:
@@ -35,10 +35,7 @@
|
||||
|
||||
#include "addrtypes.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
namespace rocr {
|
||||
|
||||
#define ADDRLIB_VERSION_MAJOR 6
|
||||
#define ADDRLIB_VERSION_MINOR 2
|
||||
@@ -3720,8 +3717,6 @@ ADDR_E_RETURNCODE ADDR_API Addr2IsValidDisplaySwizzleMode(
|
||||
UINT_32 bpp,
|
||||
bool *result);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
} // rocr
|
||||
|
||||
#endif // __ADDR_INTERFACE_H__
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
|
||||
#include "util/macros.h"
|
||||
|
||||
namespace rocr {
|
||||
using namespace Addr;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -1738,3 +1739,5 @@ ADDR_E_RETURNCODE ADDR_API Addr2IsValidDisplaySwizzleMode(
|
||||
|
||||
return returnCode;
|
||||
}
|
||||
|
||||
} // rocr
|
||||
|
||||
@@ -162,6 +162,7 @@
|
||||
|
||||
#define ADDR_C_ASSERT(__e) STATIC_ASSERT(__e)
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -943,6 +944,8 @@ static inline UINT_32 ShiftCeil(
|
||||
}
|
||||
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif // __ADDR_COMMON_H__
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "addrelemlib.h"
|
||||
#include "addrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -1827,4 +1828,5 @@ BOOL_32 ElemLib::IsMacroPixelPacked(
|
||||
return isMacroPixelPacked;
|
||||
}
|
||||
|
||||
}
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "addrobject.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -273,7 +274,8 @@ private:
|
||||
Addr::Lib* const m_pAddrLib; ///< Pointer to parent addrlib instance
|
||||
};
|
||||
|
||||
} //Addr
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -81,6 +81,7 @@ UINT_32 __umoddi3(UINT_64 n, UINT_32 base)
|
||||
|
||||
#endif // __APPLE__
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -658,3 +659,5 @@ UINT_32 Lib::GetBpe(AddrFormat format) const
|
||||
}
|
||||
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
#define CIASICIDGFXENGINE_ARCTICISLAND 0x0000000D
|
||||
#endif
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -411,5 +412,7 @@ Lib* CiHwlInit (const Client* pClient);
|
||||
Lib* Gfx9HwlInit (const Client* pClient);
|
||||
Lib* Gfx10HwlInit(const Client* pClient);
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "addrlib1.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -4059,3 +4060,5 @@ ADDR_E_RETURNCODE Lib::ComputePrtInfo(
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "addrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -539,6 +540,8 @@ private:
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "addrlib2.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -1982,4 +1983,6 @@ VOID Lib::FilterInvalidEqSwizzleMode(
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "addrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -863,6 +864,8 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "addrinterface.h"
|
||||
#include "addrobject.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -235,3 +236,5 @@ VOID Object::DebugPrint(
|
||||
}
|
||||
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "addrtypes.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -91,5 +92,7 @@ private:
|
||||
};
|
||||
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "addrcommon.h"
|
||||
#include "coord.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -602,3 +603,5 @@ BOOL_32 CoordEq::operator!=(const CoordEq& b)
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#ifndef __COORD_H
|
||||
#define __COORD_H
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -127,6 +128,8 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#ifndef __GFX10_SWIZZLE_PATTERN_H__
|
||||
#define __GFX10_SWIZZLE_PATTERN_H__
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -6115,5 +6116,7 @@ const UINT_64 CMASK_SW_PATTERN[][17] =
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
/**
|
||||
@@ -4310,3 +4311,5 @@ ADDR_E_RETURNCODE Gfx10Lib::HwlComputeSurfaceInfoLinear(
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "coord.h"
|
||||
#include "gfx10SwizzlePattern.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -578,6 +579,8 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -5056,3 +5056,5 @@ VOID Gfx9Lib::ComputeThinBlockDimension(
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "addrlib2.h"
|
||||
#include "coord.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -635,6 +636,8 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -2337,3 +2338,5 @@ BOOL_32 CiLib::CheckTcCompatibility(
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "addrlib1.h"
|
||||
#include "siaddrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -201,5 +202,7 @@ private:
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
|
||||
#include "util/macros.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -4151,3 +4152,5 @@ UINT_32 EgBasedLib::HwlStereoCheckRightOffsetPadding(
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "addrlib1.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -425,6 +426,8 @@ protected:
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -3871,3 +3872,5 @@ BOOL_32 SiLib::IsEquationSupported(
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "addrlib1.h"
|
||||
#include "egbaddrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -341,6 +342,8 @@ private:
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // rocr
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user