requested to merge roman.stratiienko/drm-hwcomposer:improve-mapper4-fds-guessing-logic into main
Unfortunately Mapper@4.0 metadata API doesn't allow to query fd index or
getting fd another way for every layout plane, therefore users have to
provide their custom additional metadata API.
We are doing all our best to minimize custom per-platform logic in
drm_hwcomposer. So it was decided to implement primitive guessing logic,
allowing users to extend it with out-of-tree code if necessary.
As was reported by John Stultz in  our primitive logic has some flaws.
New guessing logic are using inputs from layout data (pitches, offsets),
and should be more precise.