libhwc2.1: modify a WCG constraint by DPUF+AXI

HWC must consider DPUF and AXIPort for WCG constraints because WCG
engines do not support HW load sharing. All DPPs are divided into
4 groups by DPUF+AXI, and each group supports at most 4 WCG layers.

Therefore, HWC adds and modifies the HWResourceTable to consider
the AXI Port factor, and then sets up the mDisplayTDMInfo. In
checkTDMResource(), there are two different ways to load sharing:
LS_DPUF and LS_DPUF_AXI. When the TDM attribute is LS_DPUF, HWC
only sums all layer requirements from the same DPUF. When the
attribute is LS_DPUF_AXI, HWC needs to consider the AXI port as
well.

Bug: 191421040
Bug: 278001221
Test: unlock screen when full resolution
Change-Id: Idc771fc47eabcf89a45d6fc18eeb543043f2c613
3 files changed