display: Add support for interleaved YUY2 and YUYV format.

Add support for interleaved HAL_PIXEL_FORMAT_YCbCr_422_I and
HAL_PIXEL_FORMAT_YCrCb_422_I format in display HAL.

Change-Id: Ib87d9bf481c20bf6a92293dd04746719b1d928c1
HWC: Check for proper MDP version to enable C2D comp

- Allow C2D composition when MDP composition fails only
  for 8960 Non Pro Device

Change-Id: I0a0f714ea10f77a09ce8aa5b5964e644d8256a38
Merge "HWC: Check for proper MDP version to enable C2D comp"
hwc: Set display as active only after unblanking it

* For HDMI and non-Hybrid WFD solution, on receiving
online event, display hal sends hotplug connect to SF.
* In case of such displays, set them as active only
after receiving an unblank call.
* For Hybrid WFD solution, since display hal will not
be receiving unblank call from SF, set it as active
as part of processing online event itself.

Change-Id: I319f1576cba954da2024680568c37fedb1eb5d43
Merge "hwc: Set display as active only after unblanking it"
hwc: Upgrade partial MDP composition

For secondary displays instead of using video-only composition we
now use full and partial MDP composition. This is however restricted
to 2 pipes owing to SMP and B/W limitations.

RGB layers with transform are now handled by partial MDP comp for
both displays. Layer cache and batching have been upgraded to take
care of this condition.

For example if primary is rotated and has a non-hw-accelerated volume
bar pop-up, earlier we would just fall to GLES, now we try to do
partial MDP comp.
Or if secondary has layers with transform (because there is no
pre-rotation for secondary), but non-updating and there is video
playback, we should be able to use layer cache, rather than drawing
with GPU always.

Also a layer not updating and a layer composed to FB are 2 separate
concepts. This patch now treats both differently.

Change-Id: I7eb43ba817f1081f317fefa99fa0c507344060e9

Conflicts:
	libhwcomposer/hwc_mdpcomp.cpp
	libhwcomposer/hwc_mdpcomp.h

CRs-fixed: 514448
Merge "hwc: Upgrade partial MDP composition"
Merge "display: Add support for interleaved YUY2 and YUYV format."
Merge branch 'jb_2.6' of git://codeaurora.org/platform/hardware/qcom/display into cm-10.2

Change-Id: I6314bc41bba5afc741d1c44481dba100ddfc9fc2