From e457454cb6279ffaeb4c913fa812249e7e81e1e8 Mon Sep 17 00:00:00 2001 From: Marek Olšák <marek.olsak@amd.com> Date: Wed, 3 Apr 2019 17:17:08 -0400 Subject: amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> --- src/amd/addrlib/src/gfx9/gfx9addrlib.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/amd') 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)); } /** -- cgit v1.2.3