summaryrefslogtreecommitdiffstats
path: root/src/amd/addrlib/r800/ciaddrlib.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-07-20 19:22:18 +0200
committerMarek Olšák <[email protected]>2017-03-30 14:44:33 +0200
commit8b110f03191624b4a41c729297ecc58adeca2e31 (patch)
treee33ffa8f73e8c5735ffb8a070921eb635aee7c1c /src/amd/addrlib/r800/ciaddrlib.h
parentca6a38fd6a6b431b4f46478dfbf71452324f5377 (diff)
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.
Diffstat (limited to 'src/amd/addrlib/r800/ciaddrlib.h')
-rw-r--r--src/amd/addrlib/r800/ciaddrlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/addrlib/r800/ciaddrlib.h b/src/amd/addrlib/r800/ciaddrlib.h
index 92997a5b46f..1e3dc567125 100644
--- a/src/amd/addrlib/r800/ciaddrlib.h
+++ b/src/amd/addrlib/r800/ciaddrlib.h
@@ -105,7 +105,7 @@ protected:
const ADDR_CREATE_INPUT* pCreateIn);
virtual ADDR_E_RETURNCODE HwlSetupTileCfg(
- INT_32 index, INT_32 macroModeIndex, ADDR_TILEINFO* pInfo,
+ UINT_32 bpp, INT_32 index, INT_32 macroModeIndex, ADDR_TILEINFO* pInfo,
AddrTileMode* pMode = 0, AddrTileType* pType = 0) const;
virtual VOID HwlComputeTileDataWidthAndHeightLinear(