Move addrlib into rocr namespace
This avoids conflicts in case application is loading another copy of
addrlib.
Change-Id: Ifb4a10270c867366d5eed0a8c015257b415189a5
Signed-off-by: Chris Freehill <cfreehil@amd.com>
[ROCm/ROCR-Runtime commit: f1a13b6d87]
This commit is contained in:
committed by
Chris Freehill
parent
60e43e8dec
commit
08626b6cf9
@@ -18,11 +18,7 @@
|
||||
// Includes should be before extern "C"
|
||||
#include "addrtypes.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
namespace rocr {
|
||||
#define ADDRLIB_VERSION_MAJOR 8
|
||||
#define ADDRLIB_VERSION_MINOR 10
|
||||
#define ADDRLIB_VERSION ((ADDRLIB_VERSION_MAJOR << 16) | ADDRLIB_VERSION_MINOR)
|
||||
@@ -3720,7 +3716,7 @@ typedef struct _ADDR2_COMPUTE_NONBLOCKCOMPRESSEDVIEW_INPUT
|
||||
AddrResourceType resourceType; ///< Surface type
|
||||
AddrFormat format; ///< Surface format
|
||||
UINT_32 width; ///< Width of mip0 in texels (not in compressed block)
|
||||
UINT_32 height; ///< Height of mip0 in texels (not in compressed block)
|
||||
UINT_32 height; ///< Height of mip0 in texels (not in compressed block)
|
||||
UINT_32 numSlices; ///< Number surface slice/depth of mip0
|
||||
UINT_32 numMipLevels; ///< Total mipmap levels.
|
||||
UINT_32 pipeBankXor; ///< Combined swizzle used to do bank/pipe rotation
|
||||
@@ -4496,9 +4492,5 @@ ADDR_E_RETURNCODE ADDR_API Addr3ComputeSlicePipeBankXor(
|
||||
const ADDR3_COMPUTE_SLICE_PIPEBANKXOR_INPUT* pIn,
|
||||
ADDR3_COMPUTE_SLICE_PIPEBANKXOR_OUTPUT* pOut);
|
||||
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace rocr
|
||||
#endif // __ADDR_INTERFACE_H__
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
using namespace Addr;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -2152,3 +2153,4 @@ ADDR_E_RETURNCODE ADDR_API Addr3ComputeSlicePipeBankXor(
|
||||
|
||||
return returnCode;
|
||||
}
|
||||
} //namespace rocr
|
||||
@@ -184,6 +184,7 @@
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -1073,6 +1074,7 @@ static inline UINT_32 ShiftRight(
|
||||
}
|
||||
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
#endif // __ADDR_COMMON_H__
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "addrelemlib.h"
|
||||
#include "addrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -1816,3 +1817,4 @@ BOOL_32 ElemLib::IsMacroPixelPacked(
|
||||
}
|
||||
|
||||
}
|
||||
} //namespace rocr
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "addrobject.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -257,6 +258,6 @@ private:
|
||||
};
|
||||
|
||||
} //Addr
|
||||
|
||||
} //namespace rocr
|
||||
#endif
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ UINT_32 __umoddi3(UINT_64 n, UINT_32 base)
|
||||
|
||||
#endif // __APPLE__
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -233,7 +234,6 @@ ADDR_E_RETURNCODE Lib::Create(
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(pLib == NULL)
|
||||
{
|
||||
returnCode = ADDR_OUTOFMEMORY;
|
||||
@@ -658,3 +658,4 @@ UINT_32 Lib::GetBpe(AddrFormat format) const
|
||||
}
|
||||
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
@@ -39,6 +39,7 @@
|
||||
#define CIASICIDGFXENGINE_ARCTICISLAND 0x0000000D
|
||||
#endif
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -409,5 +410,5 @@ Lib* Gfx10HwlInit(const Client* pClient);
|
||||
Lib* Gfx11HwlInit(const Client* pClient);
|
||||
Lib* Gfx12HwlInit(const Client* pClient);
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "addrlib1.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -4055,3 +4056,4 @@ ADDR_E_RETURNCODE Lib::ComputePrtInfo(
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "addrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -523,6 +524,7 @@ private:
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "addrlib2.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -2159,4 +2160,5 @@ VOID Lib::ValidateStereoInfo(
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "addrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -998,6 +999,6 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "addrlib3.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V3
|
||||
@@ -1069,3 +1070,4 @@ ADDR_E_RETURNCODE Lib::ApplyCustomizedPitchHeight(
|
||||
|
||||
} // V3
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "addrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V3
|
||||
@@ -411,5 +412,6 @@ private:
|
||||
|
||||
} // V3
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
#endif
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "addrinterface.h"
|
||||
#include "addrobject.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -220,3 +221,4 @@ VOID Object::DebugPrint(
|
||||
}
|
||||
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "addrtypes.h"
|
||||
#include "addrcommon.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -74,4 +75,5 @@ private:
|
||||
};
|
||||
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "addrcommon.h"
|
||||
#include "coord.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -584,3 +585,4 @@ BOOL_32 CoordEq::operator!=(const CoordEq& b)
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
@@ -11,6 +11,7 @@
|
||||
#ifndef __COORD_H
|
||||
#define __COORD_H
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -124,6 +125,6 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
|
||||
+2
-1
@@ -16,7 +16,7 @@
|
||||
#ifndef __GFX10_SWIZZLE_PATTERN_H__
|
||||
#define __GFX10_SWIZZLE_PATTERN_H__
|
||||
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -6017,5 +6017,6 @@ const UINT_64 GFX10_CMASK_SW_PATTERN[][17] =
|
||||
|
||||
}// V2
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
/**
|
||||
@@ -3121,7 +3121,7 @@ ADDR_E_RETURNCODE Gfx10Lib::HwlGetPreferredSurfaceSetting(
|
||||
// Iterate through all block types
|
||||
for (UINT_32 i = AddrBlockLinear; i < AddrBlockMaxTiledType; i++)
|
||||
{
|
||||
if (Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<::AddrBlockType>(i)))
|
||||
if (Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<rocr::AddrBlockType>(i)))
|
||||
{
|
||||
localIn.swizzleMode = swMode[i];
|
||||
|
||||
@@ -3195,7 +3195,7 @@ ADDR_E_RETURNCODE Gfx10Lib::HwlGetPreferredSurfaceSetting(
|
||||
for (UINT_32 i = AddrBlockMicro; i < AddrBlockMaxTiledType; i++)
|
||||
{
|
||||
if ((i != minSizeBlk) &&
|
||||
Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<::AddrBlockType>(i)))
|
||||
Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<rocr::AddrBlockType>(i)))
|
||||
{
|
||||
if (Addr2BlockTypeWithinMemoryBudget(
|
||||
minSize,
|
||||
@@ -4802,3 +4802,4 @@ ADDR_E_RETURNCODE Gfx10Lib::HwlComputeSurfaceInfoLinear(
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "coord.h"
|
||||
#include "gfx10SwizzlePattern.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -571,6 +572,7 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
+2
-2
@@ -16,7 +16,7 @@
|
||||
#ifndef __GFX11_SWIZZLE_PATTERN_H__
|
||||
#define __GFX11_SWIZZLE_PATTERN_H__
|
||||
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -3036,5 +3036,5 @@ const UINT_64 GFX11_HTILE_SW_PATTERN[][18] =
|
||||
|
||||
}// V2
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
/**
|
||||
@@ -2645,7 +2645,7 @@ ADDR_E_RETURNCODE Gfx11Lib::HwlGetPreferredSurfaceSetting(
|
||||
|
||||
for (UINT_32 i = AddrBlockLinear; i < AddrBlockMaxTiledType; i++)
|
||||
{
|
||||
if (Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<::AddrBlockType>(i)))
|
||||
if (Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<rocr::AddrBlockType>(i)))
|
||||
{
|
||||
localIn.swizzleMode = swMode[i];
|
||||
|
||||
@@ -2708,7 +2708,7 @@ ADDR_E_RETURNCODE Gfx11Lib::HwlGetPreferredSurfaceSetting(
|
||||
for (UINT_32 i = AddrBlockMicro; i < AddrBlockMaxTiledType; i++)
|
||||
{
|
||||
if ((i != minSizeBlk) &&
|
||||
Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<::AddrBlockType>(i)))
|
||||
Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<rocr::AddrBlockType>(i)))
|
||||
{
|
||||
if (Addr2BlockTypeWithinMemoryBudget(minSize, padSize[i], 0, 0, pIn->memoryBudget) == FALSE)
|
||||
{
|
||||
@@ -4494,3 +4494,4 @@ ADDR_E_RETURNCODE Gfx11Lib::HwlComputeSurfaceInfoLinear(
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "coord.h"
|
||||
#include "gfx11SwizzlePattern.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -517,6 +518,6 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
|
||||
+2
-1
@@ -16,6 +16,7 @@
|
||||
#ifndef __GFX12_SWIZZLE_PATTERN_H__
|
||||
#define __GFX12_SWIZZLE_PATTERN_H__
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V3
|
||||
@@ -275,5 +276,5 @@ namespace V3
|
||||
|
||||
} // V3
|
||||
} // Addr
|
||||
|
||||
} // namespace
|
||||
#endif
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
/**
|
||||
@@ -1310,3 +1310,4 @@ void Gfx12Lib::SanityCheckSurfSize(
|
||||
|
||||
} // V3
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "coord.h"
|
||||
#include "gfx12SwizzlePattern.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V3
|
||||
@@ -213,5 +214,5 @@ private:
|
||||
|
||||
} // V3
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -3761,7 +3761,7 @@ ADDR_E_RETURNCODE Gfx9Lib::HwlGetPreferredSurfaceSetting(
|
||||
|
||||
for (UINT_32 i = AddrBlockLinear; i < AddrBlockMaxTiledType; i++)
|
||||
{
|
||||
if (Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<::AddrBlockType>(i)))
|
||||
if (Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<rocr::AddrBlockType>(i)))
|
||||
{
|
||||
localIn.swizzleMode = swMode[i];
|
||||
|
||||
@@ -3820,7 +3820,7 @@ ADDR_E_RETURNCODE Gfx9Lib::HwlGetPreferredSurfaceSetting(
|
||||
for (UINT_32 i = AddrBlockMicro; i < AddrBlockMaxTiledType; i++)
|
||||
{
|
||||
if ((i != minSizeBlk) &&
|
||||
Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<::AddrBlockType>(i)))
|
||||
Addr2IsBlockTypeAvailable(allowedBlockSet, static_cast<rocr::AddrBlockType>(i)))
|
||||
{
|
||||
if (Addr2BlockTypeWithinMemoryBudget(minSize, padSize[i], 0, 0, pIn->memoryBudget) == FALSE)
|
||||
{
|
||||
@@ -5218,3 +5218,4 @@ VOID Gfx9Lib::ComputeThinBlockDimension(
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "addrlib2.h"
|
||||
#include "coord.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V2
|
||||
@@ -631,6 +632,6 @@ private:
|
||||
|
||||
} // V2
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -2335,3 +2335,4 @@ BOOL_32 CiLib::CheckTcCompatibility(
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "addrlib1.h"
|
||||
#include "siaddrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -188,7 +189,7 @@ private:
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "egbaddrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -4143,3 +4144,4 @@ UINT_32 EgBasedLib::HwlStereoCheckRightOffsetPadding(
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "addrlib1.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -407,6 +408,6 @@ protected:
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
|
||||
@@ -3858,3 +3859,4 @@ BOOL_32 SiLib::IsEquationSupported(
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
} // namespace rocr
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "addrlib1.h"
|
||||
#include "egbaddrlib.h"
|
||||
|
||||
namespace rocr {
|
||||
namespace Addr
|
||||
{
|
||||
namespace V1
|
||||
@@ -326,6 +327,6 @@ private:
|
||||
|
||||
} // V1
|
||||
} // Addr
|
||||
|
||||
} // namespace rocr
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user