d3d12: Fix usage of D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG, was using D3D12_VIDEO_ENCODER_SUPPORT_FLAG wrongly instead

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23904>
This commit is contained in:
Sil Vilerino
2023-06-28 11:22:11 -04:00
committed by Marge Bot
parent ed0087d75e
commit 1b7bf9a4f4
@@ -673,7 +673,7 @@ d3d12_video_encoder_get_current_rate_control_settings(struct d3d12_video_encoder
case D3D12_VIDEO_ENCODER_RATE_CONTROL_MODE_QVBR:
{
#if D3D12_PREVIEW_SDK_VERSION >= 711
if ((curRateControlDesc.Flags & D3D12_VIDEO_ENCODER_SUPPORT_FLAG_RATE_CONTROL_EXTENDED_QVBR1_SUPPORT) != 0)
if ((curRateControlDesc.Flags & D3D12_VIDEO_ENCODER_RATE_CONTROL_FLAG_ENABLE_EXTENDED_QVBR1_SUPPORT) != 0)
{
curRateControlDesc.ConfigParams.pConfiguration_QVBR1 =
&pD3D12Enc->m_currentEncodeConfig.m_encoderRateControlDesc.m_Config.m_Configuration_QVBR1;