amdgpu/addrlib: Add a new output flag to notify client that the returned tile index is for PRT on SI

If this flag is set for mip0, client should set prt flag for sub mips,
so that address lib can select the correct tile index for sub mips.
This commit is contained in:
Nicolai Hähnle 2016-07-20 10:34:41 +02:00 committed by Marek Olšák
parent fa906a888b
commit 33c25655c1
2 changed files with 5 additions and 1 deletions

View file

@ -619,7 +619,10 @@ typedef struct _ADDR_COMPUTE_SURFACE_INFO_OUTPUT
///< Only meaningful when create flag checkLast2DLevel is set
UINT_32 tcCompatible : 1; ///< If the surface can be shader compatible
UINT_32 dccUnsupport : 1; ///< If the surface can support DCC compressed rendering
UINT_32 reserved :29; ///< Reserved bits
UINT_32 prtTileIndex : 1; ///< SI only, indicate the returned tile index is for PRT
///< If address lib return true for mip 0, client should set prt flag
///< for child mips in subsequent compute surface info calls
UINT_32 reserved :28; ///< Reserved bits
};
UINT_32 equationIndex; ///< Equation index in the equation table;

View file

@ -2231,6 +2231,7 @@ VOID SiLib::HwlSetupTileInfo(
}
pOut->tileIndex = index;
pOut->prtTileIndex = flags.prt;
}
/**