d3d12: AV1 Encode - Fix VAConfigAttribEncMaxRefFrames reporting

Reviewed-by: Giancarlo Devich <gdevich@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25819>
This commit is contained in:
Sil Vilerino
2023-09-18 20:38:35 -04:00
committed by Marge Bot
parent 0f7b7149a8
commit 1d5b5bb9e1

View File

@@ -314,6 +314,7 @@ d3d12_video_encode_supported_references_per_frame_structures(const D3D12_VIDEO_E
* frames supported for encoding.
*/
supportedMaxRefFrames = capPictureControlData.PictureSupport.pAV1Support->MaxUniqueReferencesPerFrame;
if (capPictureControlData.PictureSupport.pAV1Support->PredictionMode)
supportedMaxRefFrames = (supportedMaxRefFrames & 0xffff) | ((supportedMaxRefFrames & 0xffff) << 16);
}
}