Add legacy libgralloc (for bravo)
libcopybit: Disable copybit blending for opaque layers

This change disables copybit blending when surface flinger sets
HWC_BLENDING_NONE for a layer.

Change-Id: Ie86a2d5c9e3d3dab1bc7a0a3cc31bff7afe604da

Conflicts:

	libhwcomposer/hwcomposer.cpp
qcom display: qsd8k hwcomposer

hwcomposer:
         rewrite from default template.
         specific for qsd8k
         put a hack in to fix screen off animation
         builds without liboverlay include which qsd8k doesnt support

Change-Id: Ica8df89be4dba4e92ed4e879e8e821b841e2ef93
qsd8k-hwcomposer: update drawLayerUsingCopybit, revise prepare/set

apply:
Author:     Ramakant Singh <ramaka@codeaurora.org>
Display/libhwcomposer:Add intermediate stretch for low resolution clips
Copybit module has a limited stretch to scale a clip.
Hence we need to do a intermediate stretch before going
to final stretch.

and cleanup loops in hwc_prepare/set

Change-Id: Ice32e12051c5c4367d1fafe17e804679e6e727c9
Minor update
display: Reduce log severity in tiled rendering

Graphics driver returns an invalid operation
when tiled rendering has already started/ended
earlier, hence these logs are harmless.

Change-Id: I31235802a7852c8c2a2ff6f5007532cf5ef26bd9
Added missing #include <sys/ioctl.h>
copybit: fix build for qsd8k

Change-Id: Ic9edb3149a96a251e4cf9f4957f5624cef85667c
hwc-qsd8k: update drawLayerUsingCopybit and hwc_set

with new logic from caf

Change-Id: I9de48d2157ef3d8a35e7aa75061340a92f009ef6
hwcomposer: Let the external display header be overloaded

Individual devices may want a different header

Change-Id: Ic2d9524dc2dfc4ff76e0516ac7cd02432f9c95f6
qcom/display: flags clenup

Change-Id: I11c8a38f321a519f63e49e3179e2721894573da9
Revert "libcopybit: Add support for Yamato format in MDP userspace."

This reverts commit e803dd5481e609a9937585e2cb505a947c70f986.
Display/hwcomposer:Add support for intermediate down scaling

Copybit module has a limited stretch to up/down scale.
Hence we need to do a intermediate stretch before going
to final stretch.
CRs-fixed: 341196

Change-Id: Ic547fdb8e88072f9f89032f047d04a7a26bddf71
(cherry picked from commit 256bde19b8f912388e19390570e5ea36f0208cfe)
libhwcomposer: Change dynamic composition strategy

Use copybit composition only for those frames where we
have maximum 2 full screen sized layers for composition.

Change-Id: Id34975f85dce11ba9365714655c994c6f3b0cabd
fix TARGET_USES_ION usage in libcopybit

The TARGET_USES_ION ifdef/endif adds -DUSE_ION to LOCAL_CFLAGS.
It must be after the "include $(CLEAR_VARS)" otherwise it has no
effect.

This fixes "E/copybit_c2d(  157): Invalid handle flags: 0x8" errors
seen when using TARGET_USES_ION := true.

Change-Id: I924346d9efd4ec06721a3eed68d3995f8dfb00cd
overlay: Allow kernel-controlled rotator formats

Recent qcom kernels (matching this source tree) have moved the
configuration of the destination color format from userspace
to kernel, as of change I7b7f36d97d3bb2fb04e89d57b8f11e8aa65b18c1
("msm: rotator: provide dst format based on src format").

This patch keeps the older default for compatibility with the
current kernels on most devices, but allows the use of the
QCOM_ROTATOR_KERNEL_FORMATS cflag to override it for devices in
which the mentioned kernel patch has been merged

Change-Id: I6d69b258eb390b5dd54f5158b28f929fdd319449
hardware/qcom/display: removing tiling debug messages

CRs-fixed: 343820
(cherry picked from commit 7ab561734ded4b52d5772584cc1369c7e3bedafa)

Conflicts:

	libtilerenderer/tilerenderer.cpp

Change-Id: Iafcd4035119bbb62a3ebcc5744279571fe9317ac
hwcomposer: Close MDP pipe on invalid gralloc handle

Unused bypass pipes need to be closed after unlocking their
buffer handles.This change makes sure the pipes are closed even
if client releases the buffers(invalid buffer handle) before
this function gets called.

CRs-Fixed: 344765
(cherry picked from commit d8761a761f7d2eddcec12841f4d9afd4261ee79e)

Change-Id: I449d0dce4ec458e19446fcc26316a3794a15f909
libQcomUI/libhwcomposer: Log and dump layers of screen frames.

Log a frame-by-frame succession of HWComposer layers' data and write
their buffers, if any, into raw or png files based on system property
values.

CRs-fixed: 339748

Change-Id: I171a9891a0867548b34d45c0561f25f66cf0580c
(cherry picked from commit 8166b062df4765af0b0d9f95d55fa14dd4b75b8d)
libQcomUI: handle WFD and HDMI concurrency

- Add external_display_type to differentiate WFD and HDMI
- based on the display type, handle wifi display and HDMI
  concurrency

Conflicts:

	libqcomui/qcom_ui.cpp
	libqcomui/qcom_ui.h

Change-Id: I48031c3c22ce14fc30e741676c3b19c816421856