d3d12: initialize ReconstructedPicTexture

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:
Pohsiang (John) Hsu 2024-12-09 14:50:22 -08:00 committed by Marge Bot
parent 0fcef5168b
commit e8499f69a4
2 changed files with 2 additions and 0 deletions

View file

@ -297,6 +297,7 @@ d3d12_video_encoder_references_manager_h264::begin_frame(D3D12_VIDEO_ENCODER_PIC
m_CurrentFrameReferencesData.ReferenceTextures.pResources.resize(h264Pic->dpb_size);
m_CurrentFrameReferencesData.ReferenceTextures.pSubresources.resize(h264Pic->dpb_size);
m_CurrentFrameReferencesData.pReferenceFramesReconPictureDescriptors.resize(h264Pic->dpb_size);
m_CurrentFrameReferencesData.ReconstructedPicTexture = { NULL, 0u };
for (uint8_t i = 0; i < h264Pic->dpb_size; i++) {
//
// Set entry DPB members

View file

@ -270,6 +270,7 @@ d3d12_video_encoder_references_manager_hevc::begin_frame(D3D12_VIDEO_ENCODER_PIC
m_CurrentFrameReferencesData.ReferenceTextures.pResources.resize(hevcPic->dpb_size);
m_CurrentFrameReferencesData.ReferenceTextures.pSubresources.resize(hevcPic->dpb_size);
m_CurrentFrameReferencesData.pReferenceFramesReconPictureDescriptors.resize(hevcPic->dpb_size);
m_CurrentFrameReferencesData.ReconstructedPicTexture = { NULL, 0u };
for (uint8_t i = 0; i < hevcPic->dpb_size; i++) {
//
// Set entry DPB members