/**
***************************************************************************************************
-* ADDR_CONFIG_FLAGS
+* AddrConfigFlags
*
* @brief
-* This structure is used to set addr configuration flags.
+* This structure is used to set configuration flags.
***************************************************************************************************
*/
-union ADDR_CONFIG_FLAGS
+union AddrConfigFlags
{
struct
{
- /// Clients do not need to set these flags except forceLinearAligned.
- /// There flags are set up by AddrLib inside thru AddrInitGlobalParamsFromRegister
+ /// These flags are set up internally thru AddrLib::Create() based on ADDR_CREATE_FLAGS
UINT_32 optimalBankSwap : 1; ///< New bank tiling for RV770 only
UINT_32 noCubeMipSlicesPad : 1; ///< Disables faces padding for cubemap mipmaps
UINT_32 fillSizeFields : 1; ///< If clients fill size fields in all input and
}
/// Sets m_configFlags, copied from AddrLib
- VOID SetConfigFlags(ADDR_CONFIG_FLAGS flags)
+ VOID SetConfigFlags(AddrConfigFlags flags)
{
m_configFlags = flags;
}
UINT_32 m_fp16ExportNorm; ///< If allow FP16 to be reported as EXPORT_NORM
AddrDepthPlanarType m_depthPlanarType;
- ADDR_CONFIG_FLAGS m_configFlags; ///< Copy of AddrLib's configFlags
+ AddrConfigFlags m_configFlags; ///< Copy of AddrLib's configFlags
AddrLib* const m_pAddrLib; ///< Pointer to parent addrlib instance
};
// Static Const Member
///////////////////////////////////////////////////////////////////////////////////////////////////
-const AddrTileModeFlags AddrLib1::m_modeFlags[ADDR_TM_COUNT] =
+const AddrTileModeFlags AddrLib1::ModeFlags[ADDR_TM_COUNT] =
{// T L 1 2 3 P Pr B
{1, 1, 0, 0, 0, 0, 0, 0}, // ADDR_TM_LINEAR_GENERAL
{1, 1, 0, 0, 0, 0, 0, 0}, // ADDR_TM_LINEAR_ALIGNED
UINT_32 AddrLib1::Thickness(
AddrTileMode tileMode) ///< [in] tile mode
{
- return m_modeFlags[tileMode].thickness;
+ return ModeFlags[tileMode].thickness;
}
BOOL_32 AddrLib1::IsMacroTiled(
AddrTileMode tileMode) ///< [in] tile mode
{
- return m_modeFlags[tileMode].isMacro;
+ return ModeFlags[tileMode].isMacro;
}
/**
BOOL_32 AddrLib1::IsMacro3dTiled(
AddrTileMode tileMode) ///< [in] tile mode
{
- return m_modeFlags[tileMode].isMacro3d;
+ return ModeFlags[tileMode].isMacro3d;
}
/**
BOOL_32 AddrLib1::IsMicroTiled(
AddrTileMode tileMode) ///< [in] tile mode
{
- return m_modeFlags[tileMode].isMicro;
+ return ModeFlags[tileMode].isMicro;
}
/**
BOOL_32 AddrLib1::IsLinear(
AddrTileMode tileMode) ///< [in] tile mode
{
- return m_modeFlags[tileMode].isLinear;
+ return ModeFlags[tileMode].isLinear;
}
/**
BOOL_32 AddrLib1::IsPrtNoRotationTileMode(
AddrTileMode tileMode)
{
- return m_modeFlags[tileMode].isPrtNoRotation;
+ return ModeFlags[tileMode].isPrtNoRotation;
}
/**
BOOL_32 AddrLib1::IsPrtTileMode(
AddrTileMode tileMode)
{
- return m_modeFlags[tileMode].isPrt;
+ return ModeFlags[tileMode].isPrt;
}
/**