if (flags.depth && (flags.nonSplit || flags.tcCompatible || flags.needEquation))
{
- // Texure readable depth surface should not be split
+ // Texture readable depth surface should not be split
switch (tileSize)
{
case 128:
{
switch (tileMode)
{
- case ADDR_TM_1D_TILED_THICK:
- //special check for bonaire, for the compatablity between old KMD and new UMD for bonaire
+ case ADDR_TM_1D_TILED_THICK:
+ // special check for bonaire, for the compatablity between old KMD and new UMD
index = ((inTileType == ADDR_THICK) || m_settings.isBonaire) ? 19 : 18;
break;
- case ADDR_TM_2D_TILED_THICK:
- // special check for bonaire, for the compatablity between old KMD and new UMD for bonaire
+ case ADDR_TM_2D_TILED_THICK:
+ // special check for bonaire, for the compatablity between old KMD and new UMD
index = ((inTileType == ADDR_THICK) || m_settings.isBonaire) ? 20 : 24;
break;
case ADDR_TM_3D_TILED_THICK:
{
macroModeIndex = HwlComputeMacroModeIndex(index, flags, bpp, numSamples, pTileInfo);
- /// Copy to pOut->tileType/tileIndex/macroModeIndex
+ // Copy to pOut->tileType/tileIndex/macroModeIndex
pOut->tileIndex = index;
pOut->tileType = m_tileTable[index].type; // Or inTileType, the samea
pOut->macroModeIndex = macroModeIndex;
*
* @brief
* Convert GB_TILE_MODE HW value to ADDR_TILE_CONFIG.
-* @return
-* NA.
****************************************************************************************************
*/
VOID CiLib::ReadGbTileMode(
*
* @brief
* Convert GB_MACRO_TILE_CFG HW value to ADDR_TILE_CONFIG.
-* @return
-* NA.
****************************************************************************************************
*/
VOID CiLib::ReadGbMacroTileCfg(
* @brief
* Compute the squared cache shape for per-tile data (CMASK and HTILE) for linear layout
*
-* @return
-* N/A
-*
* @note
* MacroWidth and macroHeight are measured in pixels
****************************************************************************************************
* @brief
* Hardware layer function to compute alignment request for macro tile mode
*
-* @return
-* N/A
-*
****************************************************************************************************
*/
VOID CiLib::HwlComputeSurfaceAlignmentsMacroTiled(
* @brief
* Helper function to pad dimensions
*
-* @return
-* N/A
-*
****************************************************************************************************
*/
VOID CiLib::HwlPadDimensions(
{
// this restriction is only for mipmap (mipmap's numSamples must be 1)
macroAspectAlign = Max(1u,
- m_pipeInterleaveBytes * m_bankInterleave /
- (tileSize * pipes * pTileInfo->bankWidth)
- );
+ m_pipeInterleaveBytes * m_bankInterleave /
+ (tileSize * pipes * pTileInfo->bankWidth)
+ );
pTileInfo->macroAspectRatio = PowTwoAlign(pTileInfo->macroAspectRatio, macroAspectAlign);
}
valid = HwlReduceBankWidthHeight(tileSize,
- bpp,
- flags,
- numSamples,
- bankHeightAlign,
- pipes,
- pTileInfo);
+ bpp,
+ flags,
+ numSamples,
+ bankHeightAlign,
+ pipes,
+ pTileInfo);
//
// The required granularity for pitch is the macro tile width.