Skip to content

d3d12: Add H264/HEVC video encode support for slice override of L0/L1 lists active number

Sil Vilerino requested to merge sivileri/mesa:slice_override_l0l1_lists into main

Implements HEVC/H264 changes to allow the D3D12 driver to code the active number of L0/L1 elements in the slice header instead of in the picture header, removing the need to insert multiple PPS at the beginning of the GOP when the reference number ramps up from 0 to N. Leverages the new D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_H264_FLAG_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE_SUPPORT and D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC_FLAG_NUM_REF_IDX_ACTIVE_OVERRIDE_FLAG_SLICE_SUPPORT from Direct3D 1.613.0 to do so.

Merge request reports