The new perform api will update the width, height and
format of the buffer in the gralloc handle.
The GRALLOC_MODULE_PERFORM_DECIDE_PUSH_BUFFER_HANDLING perform
is not longer used in Honeycomb. Remove unused code.
CRs-fixed: 283849
Add the exported sanitized kernel headers to include path in C2D/
copybit, gralloc and overlay HAL libraries.
(cherry picked from commit a70f426e8695cc5bbf8a45b987b5715784f7e924)
Change-Id: I1dbb79a086e9cb062e1264c1c354ac5ce1a05f27
- Use rotator buffer for UI mirroring on HDMI
- Avoid ioctl calls on getPosition
CRs-fixed: 278858
Change-Id: Id390e2b85fe939d8388ed17f5f9c7fcd30499755
Add support in the gralloc to specify the desired buffer size during
buffer allocation. This is done via a new function in the gralloc(allocSize).
If the specified size is lesser that the calculated size,
set the buffer size to the calculated size.
Change-Id: Iad9609d3b9074dcf3af07430966590078081ab72
Call setPosition and setParameter for HDMI only when there is a
change in the rotation or position.
Change-Id: Id11b58408607c2f9799bb332c30d52f52957ec4e
For portrait mode: Actionsafe width depends on actionsafe
height, thus maintaining the aspect ratio.
User entered value for actionsafe width doesn't matter.
For landscape mode: Both, user entered actionsafe width
and height matter. Aspect ratio may change, in an attempt to fill
up the TV screen till the edges to avoid overscan/underscan.
Picks actionsafe rectangle as the final rectangle.
Change-Id: I4e16a2d57978d3443283e9311c2efdc6494f8a94
CRs-fixed: 271567
Fix position, aspect ratio of HDMI UI when the
primary panel type is MIPI, 8660 Panel or 7x30 Panel
Change-Id: I8e9824520317e3facb4ef25bc25dd9b1de60b4ce
CRs-fixed: 263690, 269433
Buffers allocated from the adsp or smipool regions have a masterFd associated with each buffer.
Make sure both the fds are closed when the buffers are freed to avoid memory leaks.
Change-Id: I7dd194bae9ebfffb5e8c1ed647bff6210409a731
Add support for Side-by-Side full, Side-By-Side-half formats in the overlay.
The Side by Side half formats could either be in Left-Right or Right-Left mode.
Change-Id: Ie1f0ccb5b1a8254f7256aafdd3f0ce9a3faa0df4
Add support in the overlay to display 3D content on the HDMI.
The 3D input and out formats are passed along with the regular color format.
Change-Id: I4e0338e8b2c07eca0f211c50a17bf7d82c35279b
This commit contains the following changes in the gralloc:
- Add buffertype in the gralloc handle i.e video buffer or UI buffer
- Add support for allocating memory from the /dev/pmem_smipool
- Add support for obtaining the buffer type and the HAL formats from the
input format which could be an OMX format.
- Add buffer type, format, width and height in the gralloc handle
Change-Id: Ie801cfcf5cea9c4b718b75e88abf71be6b087de7
Update the gralloc HAL to match commit:
commit 4d3c9ca6fabf2b0111ef6b567df7d244e124b9c2
Author: Arun Kumar K.R <akkr@codeaurora.org>
Date: Fri Dec 17 13:14:58 2010 -0800
libgralloc-qsd8k: Add support for non-aligned width on HDMI
While creating overlay channel for HDMI consider the aligned
width and set the crop rectangle to the actual width and height.
Change-Id: I8858d71bb10b2be4c57edb605b5da680f53051dc
this wouldn't make sense, since the h/w wouldn't be able
to use the buffer. in this case it it better to fail to
let the caller a change to try again with different usage bits.
Change-Id: Ibecaf069b6b58ee9c026affc95a45512660d5881
PRIV_FLAGS_NEEDS_FLUSH will trigger an ioctl call into the PMEM
driver in unlock(), so it makes not sense to set this flag for
non pmem buffers.
Change-Id: Ie1e077c10df86d3689b82fa6ce5d6c856fc95688
The purpose of this change is to add support for allocating gralloc buffers
from either /dev/pmem or /dev/pmem_adsp depending on the usage flags. It does
this by factoring out and abstracting the interactions with the pmem device.
For /dev/pmem allocations, the kernel allocator is not used, so a single master
fd is opened, and all the allocations are sub-allocated from that by gralloc.
For /dev/pmem_adsp the kernel allocator is used, so it simply opens a new fd
for each allocation.
A very basic unit test that can be run on the host is included. It requires
gtest, so to run it on a host system gtest must (currently) be compiled with
BUILD_WITH_ASTL=true.
Change-Id: If2ae0151698fad8107e18e808a3fa012a846263f
make sure to reject incompatible buffers in special function
GRALLOC_MODULE_PERFORM_CREATE_HANDLE_FROM_BUFFER
we use ioctl(PMEM_GET_SIZE) to validate that the given buffer is indeed
a pmem buffer.
Merge commit '2754389d0e7638b3065ecb3c965b1f262d2205ed' into eclair-mr2
* commit '2754389d0e7638b3065ecb3c965b1f262d2205ed':
gralloc-qsd8k: make sure that we never try to allocatio 0 bytes
Merge commit 'dc80f522f23ecda902bf8ddf5de68d6fe10e2c05' into eclair-mr2
* commit 'dc80f522f23ecda902bf8ddf5de68d6fe10e2c05':
gralloc-qsd8k: If using gpu composition, request rgba8888 instead of rgbx8888