amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
Marek Olšák 2019-04-03 17:17:08 -04:00
parent 41f76dd513
commit e457454cb6
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ Gfx9Lib::Gfx9Lib(const Client* pClient)
m_class = AI_ADDRLIB;
memset(&m_settings, 0, sizeof(m_settings));
memcpy(m_swizzleModeTable, SwizzleModeTable, sizeof(SwizzleModeTable));
m_metaEqOverrideIndex = 0;
memset(m_cachedMetaEqKey, 0, sizeof(m_cachedMetaEqKey));
}
/**