d3d12: Add NULL initialization for d3d12_video_enc::m_pVideoTexArrayDPBPool

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed by: Pohsiang (John) Hsu <pohhsu@microsoft.com>

Reviewed-by: Jesse Natalie <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33312>
This commit is contained in:
Sil Vilerino 2025-01-22 21:51:12 -05:00 committed by Marge Bot
parent 123374c1d7
commit fcbadd77a8

View file

@ -450,7 +450,7 @@ struct d3d12_video_encoder
// and the pointer is stored on each d3d12_video_buffer
// 2. On d3d12_video_buffer::destroy(), when all the slots
// of the allocation pool are unused, the memory is released.
pipe_resource *m_pVideoTexArrayDPBPool;
pipe_resource *m_pVideoTexArrayDPBPool = NULL;
std::shared_ptr<uint32_t> m_spVideoTexArrayDPBPoolInUse;
};