mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
amd: Initialize Gfx11Lib members in constructor.
Fix defects reported by Coverity Scan.
Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member m_numPkrLog2 is not initialized in this constructor nor in any functions that it calls.
uninit_member: Non-static class member m_numSaLog2 is not initialized in this constructor nor in any functions that it calls.
Fixes: 4fdf42b3c2 ("amd: import gfx11 addrlib")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16679>
This commit is contained in:
parent
90ff3c350b
commit
b35991dbcb
1 changed files with 2 additions and 0 deletions
|
|
@ -125,6 +125,8 @@ const Dim3d Gfx11Lib::Block4K_Log2_3d[] = {{4, 4, 4}, {3, 4, 4}, {3, 4, 3}, {3
|
|||
Gfx11Lib::Gfx11Lib(const Client* pClient)
|
||||
:
|
||||
Lib(pClient),
|
||||
m_numPkrLog2(0),
|
||||
m_numSaLog2(0),
|
||||
m_colorBaseIndex(0),
|
||||
m_htileBaseIndex(0),
|
||||
m_dccBaseIndex(0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue