disp: msm: sde: move boolean flags in catalog to a bitmap

Move all the individual boolean flags from HW catalog into a
"features" bitmap. These flags are used to specify support of
various target specific features.

Change-Id: I2334b3b873f3737f91bbae4ef576408247710156
Signed-off-by: Steve Cohen <quic_cohens@quicinc.com>
This commit is contained in:
Steve Cohen
2021-02-09 18:52:33 -05:00
committed by Jeykumar Sankaran
parent 5f25adc693
commit 7f0c843da4
13 changed files with 479 additions and 502 deletions

View File

@@ -2209,7 +2209,7 @@ static int _sde_rm_populate_requirements(
*/
if ((!RM_RQ_CWB(reqs) || !RM_RQ_DCWB(reqs))
&& sde_crtc_state_in_clone_mode(enc, crtc_state)) {
if (cfg->has_dedicated_cwb_support)
if (test_bit(SDE_FEATURE_DEDICATED_CWB, cfg->features))
reqs->top_ctrl |= BIT(SDE_RM_TOPCTL_DCWB);
else
reqs->top_ctrl |= BIT(SDE_RM_TOPCTL_CWB);