d3d12: Fix setting of direct_8x8_inference_flag in the SPS

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31097>
This commit is contained in:
Sil Vilerino 2024-09-09 09:19:30 -04:00 committed by Marge Bot
parent 0ae4afe034
commit e5714059e1

View file

@ -113,10 +113,7 @@ d3d12_video_bitstream_builder_h264::build_sps(const struct pipe_h264_enc_seq_par
0, // gaps_in_frame_num_value_allowed_flag
pic_width_in_mbs_minus1,
pic_height_in_map_units_minus1,
((codecConfig.ConfigurationFlags &
D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_USE_ADAPTIVE_8x8_TRANSFORM) != 0) ?
1u :
0u, // direct_8x8_inference_flag
1u, // direct_8x8_inference_flag as per DX12 spec
frame_cropping_flag,
frame_cropping_codec_config.left,
frame_cropping_codec_config.right,