sdm: Limit composed layers for non primary displays

While configuring Constraints, limit max_layers to 2
only if the display is not primary. Without
this condition composition will fallback to GPU
(instead of MDP) for HDMI set as primary.

Change-Id: I8cd8c16cdb83196c1ea115621ae52be74ab43b09
CRs-Fixed: 1017762
3 files changed