amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord
authorMarek Olšák <marek.olsak@amd.com>
Wed, 3 Apr 2019 21:17:08 +0000 (17:17 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 4 Apr 2019 13:30:40 +0000 (09:30 -0400)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/addrlib/src/gfx9/gfx9addrlib.cpp

index b3cbccf6a127265ba825ee07981a5e0b3c4eeb3c..9be775f35f9b2936d8c7ff15b8a4d5eeaa385653 100644 (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));
 }
 
 /**