From: Marek Olšák Date: Wed, 3 Apr 2019 21:17:08 +0000 (-0400) Subject: amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e457454cb6279ffaeb4c913fa812249e7e81e1e8;p=mesa.git amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/addrlib/src/gfx9/gfx9addrlib.cpp b/src/amd/addrlib/src/gfx9/gfx9addrlib.cpp index b3cbccf6a12..9be775f35f9 100644 --- a/src/amd/addrlib/src/gfx9/gfx9addrlib.cpp +++ b/src/amd/addrlib/src/gfx9/gfx9addrlib.cpp @@ -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)); } /**