hwc: Move max app layer check outside isFrameDoable routine.

Move the condition for checking maximum number of app layers
ourside the isFrameDoable function to avoid heap corruption while
updating hnd array in cacheAll function.

Change-Id: Id4458fcadc7775a2d78b1849de6782857c6ac17f
hwc: split display: Allow FB to acquire any pipe

In the high res, partial mdp comp, we may end up using all rgb pipes
before fb is configured. Let fb use TYPE_ANY, so that pipes are
searched for starting with RGB, VG, DMA.

Change-Id: Ie30992f9ad56b83b3411ab4f6bea2bb317bb0ef1
hwc: poll for vsync event

poll on the vsync file descriptor. This prepares the ground for
multiple vsync updates without adding additional threads.

Change-Id: I30ef0fb34816d438501475cd3e4967775fcb1d19
gralloc: Fixes for software composition

Check that the buffer is actually an ion buffer
before calling clean. This is needed for the case
where the physically contiguous framebuffer is mapped.
That framebuffer memory is used for bringup.

Change-Id: I2db84d4bfc3465d995f12e0860be3cafa0d4a81b
gralloc: Use compile time flag for mdss.

The gralloc allocation can happen from processes other than
surfaceflinger in which case we cannot open the framebuffer
device to get the mdp version. Use the MDSS_TARGET flag to
differentiate.

Change-Id: I69bc9ff6004b382a2836274a32fbbd3b2e67dea2
Merge "hwc: split display: Allow FB to acquire any pipe"
Merge "hwc: Move max app layer check outside isFrameDoable routine."
hwc: Set external display indicator on RESUME event

   Treat RESUME event as ONLINE event. On Resume event, set
   external display indicator. This will ensure that GPU
   will be used for Primary composition there by freeing
   remaining pipes ensuring that External will be assured
   of pipe allocation.

Change-Id: I53471f4f828811ed8645cf8b08beaab7b46d181d
Merge "hwc: poll for vsync event"
display: changes for mr2 bringup

- Disable QCOM_BSP on jb_mr2 till all the display features
  are enabled
- Define ANDROID_JELLYBEAN_MR1 determine JB_MR1 SDK

Change-Id: I1271c0f0d392a54e20313f99c0ae494cd69f5492
liboverlay: define log2f only for jb_mr1

We only need this defined for JB MR1 as other builds may have it
defined in math.h

Change-Id: I6fbf3338bad63baa9dba3c7e135853bdce909930
libexternal: fix mode selection

Consider 1024x768p vesa format when deciding the best mode

Change-Id: I5966689c24ad19cccfdf280d73c4cdd95c8b3662
Merge "gralloc: Fixes for software composition"
Merge "gralloc: Use compile time flag for mdss."
Merge "display: changes for mr2 bringup"
Merge "liboverlay: define log2f only for jb_mr1"
Merge "libexternal: fix mode selection"
hwc: consider landscape panels for calculating aspect ratio

Need to consider the primary panel native orientation(portrait or
landscape) while calculating the aspect ratio for external display

Change-Id: Ic37c719fe736b6957d975ebefa9972b1ba3ccf7f
CRs-fixed: 497272
overlay: MDSS cannot handle 1-pixel downscaling for UI layer.

As MDSS cannot handle 1-pixel downscaling for UI layer, decrease
src crop by 1 pixel in such cases.

Change-Id: Ifc1f3a8e416c48db4b09d2ab0838927952e263ed
liblight: Correct blink node according to new kernel changes

- Correct blink node path
- Remove old, unused nodes

Change-Id: Ifc565839e34013bd6c71fe14ef48f120b4ab4ffc