libgralloc: Set the Adreno raster mode as "unknown"

Set the raster mode as "unknown" when calling libadreno_utils to
compute the surface stride. This allows libadreno_utils to decide
the best stride to pick up based on the specific GPU.

Change-Id: Id88f5887168564398492ab03d160ddd0ce5e083a
gralloc: Add support for "RAW" and "BLOB" formats

The allocation is done as specified in system/graphics.h
Raw formats are 16 bit and aligned to 32 bytes, blob formats have
a height of 1 and the size of the buffer is equal to the width.

Change-Id: If762a34dde3b78f138689ced1077c9529020ebf0
gralloc: Add missing break statement

Change-Id: I5ac1b5d504a0d6d026c3cf8f73c5be99426f7e0f
Signed-off-by: Ed Tam <etam@google.com>
gralloc: white space cleanup

Change-Id: Id97301efed3e374ad9f09ed4ccd5ced827e26cc8
gralloc: Mark buffers used by HWC

Some clients need to distinguish between buffers going to HWC
for composition and other regular buffers.

Change-Id: Ia05a765afe2f8bd223f3e47edd0fb746d6ade531
gralloc: Mark buffers used by HW Texture

Consumer of gralloc buffers need to distinguish between buffers
with different usage flags, such as HW_TEXTURE vs VIDEO_ENCODER.

Change-Id: Idc330390c184ea942c096b84d29afe7705c06e4d
gralloc: Add ITU-R standard info for YUV formats

These format qualifiers will help graphics decide which standard to use when
working with a YUV texture.

Bug: 8223174
Change-Id: I6ad464e6b070d3b375c5e07f03228308d15407cd
Signed-off-by: Iliyan Malchev <malchev@google.com>
gralloc: Set correct private gralloc format for video buffers

For IMPLEMENTATION_DEFINED pixel format, if the usage flag is
HW_VIDEO_ENCODER, the private gralloc format should be
HAL_PIXEL_FORMAT_NV12_ENCODEABLE.

Change-Id: I61e8aabe124179e8bebda5d50ad1d8681060b99a
gralloc: Add support for lock_ycbcr

Fill the android_ycbcr struct for HAL_PIXEL_FORMAT_YCbCr_*_888
formats.

Change-Id: If0c7abf5e206bf982ad333da2dae57cbac302733
Gralloc: Fix HAL_PIXEL_FORMAT_YCrCb_420_SP structure init

The initialization was overrunning the end of the structure.

Bug: 8946915
Change-Id: I24b594316956f73366f8c1941c9270faf38e431d
gralloc: Allow system heap to be uncached.

Remove an old check that prevented this from happening.

Change-Id: I938b11b27e58fc38a679dc55e31e7b51eb86bd3a
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
Revert "copybit: Making even destination frame crop"

This reverts commit 18616a7a0beb2d0fa4d700ffc4c0ec5b281be960.
Revert "copybit: Making even dst width and height"

This reverts commit e0db78ec02076d86593ab8679a6d392916b004f6.
copybit: Fix mismatch between HAL and MDP formats.

Fix the format mismatch between HAL and MDP formats
in copybit. This is to handle chroma issues on 8x10
for SW decoded videos.

Change-Id: I0b1ddc10cfca0c8b219838b33253a0c87b7c8f97
Revert "copybit: Fix type conversion error for GCC 4.7"

This reverts commit b50653e64d26d27482c289afa5ec2a6e0e6d4844.
qdutils: Don't assume we support overlay without version info.

If we can't determine the version we shouldn't assume that overlay is
supported. If it is still needed there should be a config to force
overlay support.

Change-Id: Ic1000fdcd5ffefc517782eca605fc63b88f47602
qdutils: Add MDP v3.0.2 detection.

Change-Id: I22ad1f7fe3c2c03518e192b44f8f0f7018d8ff34
libcopybit: Use CM standard QCOM naming.

Change-Id: Ide4c8d36743fc23f2711e010a8f031f1bb0b7c6f
Merge branch 'jb_2.6-gralloc-bringup' into cm-10.2