d3d12: Initialize TransitionableResourceState m_SupportsSimultaneousAccess.

Fix defect reported by Coverity Scan.

Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member m_SupportsSimultaneousAccess is
not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8192>
This commit is contained in:
Vinson Lee 2020-12-21 17:26:56 -08:00 committed by Marge Bot
parent 28a9c9e573
commit 512ca3464d
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ struct TransitionableResourceState
TransitionableResourceState(ID3D12Resource *pResource, UINT TotalSubresources, bool SupportsSimultaneousAccess) :
m_DesiredState(TotalSubresources),
m_TotalSubresources(TotalSubresources),
m_SupportsSimultaneousAccess(SupportsSimultaneousAccess),
m_currentState(TotalSubresources, SupportsSimultaneousAccess),
m_pResource(pResource)
{