Skip to content

d3d12: HEVC Encode - Query slice config mode based on user slice setting

tengjinchung requested to merge tengjinchung/mesa:hevc_slice_encode into main

Queries D3D12_FEATURE_VIDEO_ENCODER_SUPPORT1 for HEVC setting D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT1.SubregionFrameEncoding as D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_UNIFORM_PARTITIONING_SUBREGIONS_PER_FRAME or D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_FULL_FRAME depending on the frontend number of slices requested.

Doing this avoids d3d12_video_encoder_config_dirty_flag_slices from being set on every frame otherwise, triggering a reconstruction of the encoder objects on every frame on some platforms.

Edited by tengjinchung

Merge request reports

Loading