Skip to content

d3d12: Check video encode codec cap before checking encode profile/level cap

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

What does this MR do and why?

Add a check for D3D12_FEATURE_VIDEO_ENCODER_CODEC when querying for codec support, before checking D3D12_FEATURE_VIDEO_ENCODER_PROFILE_LEVEL as some drivers will report codec support in D3D12_FEATURE_VIDEO_ENCODER_PROFILE_LEVEL even when the codec itself is not supported by D3D12_FEATURE_VIDEO_ENCODER_CODEC.

cc @jenatali

Merge request reports