qcom_display: add TARGET_PROVIDES_LIBLIGHT

Change-Id: Ifa4984a3dc4b938fb89d6c65c8cda931d643f3c6
overlay: Compile MDSS rotator even when headers not present

Change-Id: Ifc74531b6d73ab5d752441d1a0e7d3b0d0d658e0
(cherry picked from commit e76f183710272f02149e003357107c85bc74914b)
hwc: dont return from vsync thread when read fails.

Read can return fail when the panel is off.
When read fails do not exit from the vsync thread,
continue with the vsync signal, as later there will
be correct vsync event from the driver

Change-Id: I0f145b93fe5d365eafb6b9e7661160f00f84db40
Acked-by: Arun Kumar K.R<akumarkr@codeaurora.org>
(cherry picked from commit ef93ede83eba15252a5e902981c491bf8ed228cc)
libqdutils::Add support for qcomuiClearRegion

Add support for qcomuiClearRegion for draw
wormhole regions via CPU.

* Added separate singaltone class for getting
eglGetRenderBufferANDROID handle that can be
used by both copybit and clear_regions modules

CRs-Fixed: 383115

Change-Id: Ibeb5bdda87a60950889416e5b4d53e6eb5a3682e
display : Do not use copybit for composition when YUV layer is present.

Do not use copybit for composition when YUV layer is present only in
overlay targets & use copybit in non-overlay targets.

CRs-Fixed : 385992
Change-Id: I671bc5f37b924160e32e900207fb81634dee0929
(cherry picked from commit 1f05b5ef18723bc73a21259ca7c5f112228a5c85)
libqdutils::Use qcomuiClearRegion for dynamic composition

Change-Id: I7483f6967c6f712af15031c386fb08c8fdae0808
copybit: Fix crash when copy_image is called with Tile format

Add check for copy_image failure case.
CRs-Fixed: 393122

Change-Id: I5765120e87a135795d771c5d331275a66ade7e23
libgralloc: Fix possible leak of fd

Fix possible leak of fd in ion allocation.
If mmap fails close the fd before returning.

Change-Id: Id414792c14a75259f6075b0d76bc470c31fb5853
CRs-fixed: 387633
hardware/qcom/display: Remove glfinish call

There is no need to do a glFinish on every composition complete.
glFinish needs to be called for composition cycles where GPU and
copybit are both used for composition. This is because the GPU and
copybit operate on the same framebuffer.

(cherry picked from commit 7983c275ae3eb15fab931d301e6338f83ad4a75a)

Change-Id: If06da4ca60ec17122c3dd698558cbf08fec73251
hwc: Check for the validity of the fb layer

Need to check if this is valid before doing anything
Extra NULL checks all around to prevent any invalid
lists from SurfaceFlinger

Change-Id: I57ca97167e469910bcaaa68672ae70b41a061ded
display: Add support for flip operation in MDP comp

This change adds support for flip operation during MDP composition. This
enables frames to get MDP composited during 270 degree orientation too (with
pre rotation doing 90 degree rotation) or even with layers with just h flip or
v flip.

Bug: 7435860
Change-Id: I7fd18226d8337b2cd9341d709c2bd030eff881f7
Signed-off-by: Iliyan Malchev <malchev@google.com>
display: Don't use MDP flip if prerotation is disabled

Change I7fd18226d8337b2cd9341d709c2bd030eff881f7 introduced the
flip operations to MDP, but those depend on prerotation. On
devices with disabled prerotation (like the mako), this causes
artifacting (horizontal mirroring) with 180 rotations.

Change-Id: I6f7d03a12a1315d5bdd9c8b32b1f2289274738a5
Don't build when variant is requested.

Change-Id: I32adc414e5e68af6c409115583984a09d65b6587
Fix a trivial signed vs unsigned comparison for gcc 4.7.

Change-Id: I525e7709ec5e93cacc90f12a371716d220ff65fa
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/hardware/qcom/display into aosp
display: Allow build for all QCOM platforms

Change-Id: I82b62206ad3d827e1af68041f88f86f18dc19b90
display: Use fences for all targets

Change-Id: I89a8b661dba7919707ba26ff35fb294b22aaba67
hwc: Don't allow downscale with alpha on MDP <= 4.1

Change-Id: I86a9031a4c5ff28e9bb10f6ed7405946b1c600cc
Merge remote-tracking branch 'aosp/jb-mr1.1-release' into cm-10.1

Change-Id: I44a10eaa285d0521669781a4fafb7641df209186
Merge tag 'android-4.3_r2.1' into cm-10.2

Android 4.3 release 2.1

Conflicts:
	Android.mk
	libgralloc/alloc_controller.cpp
	libgralloc/gpu.h

Change-Id: Ia7b060bf83fb16c5693259a5c0e2e0073b042ff8