mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
amdgpu/addrlib: force all zero tile info for linear general.
This commit is contained in:
parent
8b110f0319
commit
3bd1380ab2
1 changed files with 10 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue