amdgpu/addrlib: force all zero tile info for linear general.
This commit is contained in:
committed by
Marek Olšák
parent
8b110f0319
commit
3bd1380ab2
@@ -555,7 +555,16 @@ ADDR_E_RETURNCODE CiAddrLib::HwlSetupTileCfg(
|
||||
// Global flag to control usage of tileIndex
|
||||
if (UseTileIndex(index))
|
||||
{
|
||||
if (static_cast<UINT_32>(index) >= m_noOfEntries)
|
||||
if (index == TileIndexLinearGeneral)
|
||||
{
|
||||
pInfo->banks = 2;
|
||||
pInfo->bankWidth = 1;
|
||||
pInfo->bankHeight = 1;
|
||||
pInfo->macroAspectRatio = 1;
|
||||
pInfo->tileSplitBytes = 64;
|
||||
pInfo->pipeConfig = ADDR_PIPECFG_P2;
|
||||
}
|
||||
else if (static_cast<UINT_32>(index) >= m_noOfEntries)
|
||||
{
|
||||
returnCode = ADDR_INVALIDPARAMS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user