d3d12: Check video encode codec cap before checking encode profile/level cap
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