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
display: fix binder interface for setExtOrientation

Add missing hook b/w the binder client and service for
setting EXTERNAL_ORIENTATION

Change-Id: If6084031793251cca16b926bd82f5dccf76468a1
Merge "display: fix binder interface for setExtOrientation"
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
libgralloc: Allow USAGE_RARELY flags to be uncached

Allow GRALLOC_USAGE_SW_READ_RARELY and GRALLOC_USAGE_SW_WRITE_RARELY
flags to be uncached.

Change-Id: I014d659e5d5465c6a27aa3979d52cbf3f7c14024
Merge "libgralloc: Allow USAGE_RARELY flags to be uncached"
hwc: Don't use yuv count for fb Z order.

In video-only cases, don't use yuv count for fb Z order, instead use
the mdp count which indicates how many video layers are actually
being sent to overlays.

Change-Id: I53ab4316fbb17f5d054066ef2dd85d89183d6a8c
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: Don't use yuv count for fb Z order."
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 commit 'd96848240aea21089c3a13d2f0544ee64cd8761a' into HEAD
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"