From e457454cb6279ffaeb4c913fa812249e7e81e1e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 3 Apr 2019 17:17:08 -0400 Subject: [PATCH] amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord Reviewed-by: Bas Nieuwenhuizen --- src/amd/addrlib/src/gfx9/gfx9addrlib.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)); } /** -- 2.30.2