hwc: handle actionsafe with downscale on ext enabled

during actionsafe calculations, if downscale on ext is enabled, we need
to consider the physical display attributes.

Change-Id: Ia07218b0b8e47b91b0bf575c66478ebaeab2e2a4
hwc: Fix for MDP Downscaling limitation

  For HDMI/WFD downscaling scenario, if the downscale factor is
  >=2, MDP cannot do downscaling without BLT mode. Since BLT mode
  is disabled, overlay_set_failure occurs when downscale factor
  is >=2 (Ex: primary resolution 1920 x 1080, External resolution
  640 x 480). To fix this, do MDP downscaling only when downscale
  factor is < 2.

Change-Id: I6361d0290ad75abc1f39662377e590cd288a48a8
Merge "hwc: handle actionsafe with downscale on ext enabled"
Merge "hwc: Fix for MDP Downscaling limitation"
Merge branch 'jb_2.6' of git://codeaurora.org/platform/hardware/qcom/display into cm-10.2
Merge pull request #5 from CyanogenMod/cm-10.2

cm commits