amdgpu/addrlib: Add a member "bpp" for input of method AddrConvertTileIndex and AddrC...
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 20 Jul 2016 17:22:18 +0000 (19:22 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 12:44:33 +0000 (14:44 +0200)
commit8b110f03191624b4a41c729297ecc58adeca2e31
treee33ffa8f73e8c5735ffb8a070921eb635aee7c1c
parentca6a38fd6a6b431b4f46478dfbf71452324f5377
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/addrinterface.h
src/amd/addrlib/core/addrlib1.cpp
src/amd/addrlib/core/addrlib1.h
src/amd/addrlib/r800/ciaddrlib.cpp
src/amd/addrlib/r800/ciaddrlib.h
src/amd/addrlib/r800/siaddrlib.cpp
src/amd/addrlib/r800/siaddrlib.h