hwc: Allow MDP composition for Secure playback

    Allow MDP composition for Secure playback.
    Handle non-secure scenarios like
      1. When secure mode is enabled, if HWC receive a non-secure video
         layer, fallback to GPU.
      2. When non-secure mode is enabled, if HWC receive a secure video
         layer, fallback to GPU.

Change-Id: I7fba414e4dfbe9a87de3ce1e5e07f601bbccd5bd
libqdexternal:select native mode as preferred mode.

Instead of selecting best mode, select native mode as
preferred mode from EDID.

Change-Id: I6fb0850a03a02ffddf416eef4de955bd708e66a2
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Merge "libqdexternal:select native mode as preferred mode."
Merge "hwc: Allow MDP composition for Secure playback"
hwc: Disable mdp composition under certain conditions

Disable mdp composition if required BW exceeds more than
fallback factor

CRs-Fixed: 526377
Change-Id: Ieeb146729748d6f1383ad4e6b2dc21b662642030
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
Merge "hwc: Disable mdp composition under certain conditions"