From 8b110f03191624b4a41c729297ecc58adeca2e31 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Wed, 20 Jul 2016 19:22:18 +0200 Subject: amdgpu/addrlib: Add a member "bpp" for input of method AddrConvertTileIndex and AddrConvertTileInfoToHW When clients queries tile Info from tile index and expects accurate tileSplit info, bits per pixel info is required to be provided since this is necessary for computing tileSplitBytes; otherwise Addrlib will return value of "tileBytes" instead if bpp is 0 - which is also current logic. If clients don't need tileSplit info, it's OK to pass bpp with value 0. --- src/amd/addrlib/r800/siaddrlib.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/amd/addrlib/r800/siaddrlib.cpp') diff --git a/src/amd/addrlib/r800/siaddrlib.cpp b/src/amd/addrlib/r800/siaddrlib.cpp index 869cc56c1fe..296391ab46f 100644 --- a/src/amd/addrlib/r800/siaddrlib.cpp +++ b/src/amd/addrlib/r800/siaddrlib.cpp @@ -2443,6 +2443,7 @@ INT_32 SiAddrLib::HwlPostCheckTileIndex( *************************************************************************************************** */ ADDR_E_RETURNCODE SiAddrLib::HwlSetupTileCfg( + UINT_32 bpp, ///< [in] Bits per pixel INT_32 index, ///< [in] Tile index INT_32 macroModeIndex, ///< [in] Index in macro tile mode table(CI) ADDR_TILEINFO* pInfo, ///< [out] Tile Info -- cgit v1.2.3