summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-04-03 17:17:08 -0400
committerMarek Olšák <[email protected]>2019-04-04 09:30:40 -0400
commite457454cb6279ffaeb4c913fa812249e7e81e1e8 (patch)
tree7359b2865a823ae7a03acba6ecf8b7535202820a
parent41f76dd513b03e7e7490c0f766e47dcf813a607f (diff)
amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/addrlib/src/gfx9/gfx9addrlib.cpp2
1 files changed, 2 insertions, 0 deletions
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));
}
/**