[Mesa-dev] [PATCH] amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord
Marek Olšák
maraeo at gmail.com
Wed Apr 3 21:17:08 UTC 2019
From: Marek Olšák <marek.olsak at amd.com>
---
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 b3cbccf..9be775f 100644
--- a/src/amd/addrlib/src/gfx9/gfx9addrlib.cpp
+++ b/src/amd/addrlib/src/gfx9/gfx9addrlib.cpp
@@ -129,20 +129,22 @@ const Dim3d Gfx9Lib::Block256_3dZ[] = {{8, 4, 8}, {4, 4, 8}, {4, 4, 4}, {4, 2
************************************************************************************************************************
*/
Gfx9Lib::Gfx9Lib(const Client* pClient)
:
Lib(pClient),
m_numEquations(0)
{
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));
}
/**
************************************************************************************************************************
* Gfx9Lib::~Gfx9Lib
*
* @brief
* Destructor
************************************************************************************************************************
*/
--
2.7.4
More information about the mesa-dev
mailing list