libhwc2.1: add WCG constraints into TDM

HWC adds WCG constraints into TDM:
1. WCG resource amount is added into the HW resource table.
2. ExynosResourceManager constructor loads WCG resource amount based
on the SOC revision automatically.
3. checkPreblendingRequirement() checks each stage (EOTF, GM, DTM,
and OETF) of preblending functions. If so, mark the mNeedPreblending.
4. checkTDMResource() rejects the resource assignment if a layer exceeds
the WCG constraints.

Bug: 271771611
Test: to take screenshots when multiple layers
Change-Id: I5b16e76b8619b5e0a0e54fd2bd287ce632e1168d
5 files changed