mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 09:40:40 +02:00
d3d12: Set HEVC GOP state before calling d3d12_video_encoder_negotiate_requested_features_and_d3d12_driver_caps
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31097>
This commit is contained in:
parent
ef381a1e7b
commit
eb920af780
1 changed files with 6 additions and 6 deletions
|
|
@ -884,6 +884,12 @@ d3d12_video_encoder_update_current_encoder_config_state_hevc(struct d3d12_video_
|
|||
// Set rate control
|
||||
d3d12_video_encoder_update_current_rate_control_hevc(pD3D12Enc, hevcPic);
|
||||
|
||||
// Set GOP config
|
||||
if(!d3d12_video_encoder_update_hevc_gop_configuration(pD3D12Enc, hevcPic)) {
|
||||
debug_printf("d3d12_video_encoder_update_hevc_gop_configuration failed!\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
///
|
||||
/// Check for video encode support detailed capabilities
|
||||
///
|
||||
|
|
@ -925,12 +931,6 @@ d3d12_video_encoder_update_current_encoder_config_state_hevc(struct d3d12_video_
|
|||
pD3D12Enc->m_currentEncodeConfig.m_currentResolution,
|
||||
pD3D12Enc->m_currentEncodeCapabilities.m_currentResolutionSupportCaps.SubregionBlockPixelsSize);
|
||||
|
||||
// Set GOP config
|
||||
if(!d3d12_video_encoder_update_hevc_gop_configuration(pD3D12Enc, hevcPic)) {
|
||||
debug_printf("d3d12_video_encoder_update_hevc_gop_configuration failed!\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set intra-refresh config
|
||||
if(!d3d12_video_encoder_update_intra_refresh_hevc(pD3D12Enc, srcTextureDesc, hevcPic)) {
|
||||
debug_printf("d3d12_video_encoder_update_intra_refresh_hevc failed!\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue