[Mesa-dev] [PATCH] amd/addrlib: fix uninitialized values for Addr2ComputeDccAddrFromCoord

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Apr 3 22:14:41 UTC 2019


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Wed, Apr 3, 2019 at 11:17 PM Marek Olšák <maraeo at gmail.com> wrote:
>
> 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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list