History log of /hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7a09f5d1465b17a920bbc877ce1b8c63a754aa67 22-Jan-2014 Arun Kumar K.R <akumarkr@codeaurora.org> libgralloc: use proper types and type casts

- Use proper types for pointers
- Resolve compiler errors
- handle proper type casts
- remove unused variables

Change-Id: I628ebe174485d30abadea4ca40b67f9aab1a0652
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
c9cbe63708025b7aed15e251b2fb3a914fd842a0 01-Feb-2014 Ramkumar Radhakrishnan <ramkumar@codeaurora.org> display: Remove klockwork warnings and errors.

Remove all klockwork warnings and errors for libgralloc,
libhwcomposer, liboverlay, libqdutils, libqservice, libvirtual,
libexternal libraries to avoid buffer overflow and memory leaks.

Change-Id: I078143bcbcf5e4b342156bd8305a644566f7cc4b
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
3e95b7d0a6a76975f6a6cb21ede1988bf63aa445 16-Jul-2013 Naseer Ahmed <naseer@codeaurora.org> gralloc: Default to an error value for mapFrameBuffer

We do further operations in fb_device_open based on the result of
mapFrameBuffer. However, if mapFrameBuffer is never done, we
could end up with a random crash when using the info values in
fb_device_open. Defaulting to an error value avoids this.

Change-Id: I1e51f814611a3f2eb73f36d75e14d8725ca98474
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
6c5aca477c047dc27fef95285649d0940d960997 04-Jul-2013 Naseer Ahmed <naseer@codeaurora.org> gralloc: Do not map framebuffer memory unless needed

The SurfaceFlinger opens the framebuffer module even when it
isn't necessary. It does this for some legacy hals.
Due to this we unnecessarily mmap the fb memory in gralloc.
Do not map this unless the property to use the framebuffer
memory is set.

Change-Id: Ib4ebfdf9a63af0dabb53170342181bac0360baeb
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
6397c8bb267d7d93c7ebdaa7662cb90ab63e3913 11-Apr-2013 Naseer Ahmed <naseer@codeaurora.org> gralloc: Enable framebuffer memory mapping.

Enable mapping from framebuffer if debug.gralloc.map_fb_memory
is set to 1. This is useful for bringup.

Change-Id: I3c860148729c5f5c98d84bf17e6633285b4b0af1
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
255e4ae008be4e95530e7153f4ce2d55c70a1e18 20-Mar-2013 Naseer Ahmed <naseer@codeaurora.org> display: Fix merge issue in jb_mr1

Slightly different version went on jb_2.5 which caused a
mismatch. Escaped testing because FB HAL is not used.

Change-Id: Ia7ee2fb80bf937499d372383641f71530dc1feca
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
c567a93cd9ff7079ac03024d4fdb1ddc5683e748 21-Feb-2013 Jeykumar Sankaran <jsanka@codeaurora.org> display: Remove framebuffer HAL usage

This patch removes the usage of the framebuffer HAL which is
deprecated in JB MR1 onwards. The code is left for compatibility
such as conformance tests but it is unused for normal display
usage.

Change-Id: If98133bdaa759cdc41d4503ff695b225ee43cb6f

Conflicts:

libhwcomposer/hwc_utils.cpp
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
83b98f3b7c3c458707c95b854a3669c98d28d1f5 12-Feb-2013 Naseer Ahmed <naseer@codeaurora.org> display: Remove genlock usage

genlock is no-op from Android 4.2 onwards since the sync framework
is used for explicit synchronization.

Change-Id: Idd1df589516534a683e0fa1ef0cfbb7f0e411f67
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
1eb3278d91ed003feafd473aa109e2e7594d1559 12-Feb-2013 Linux Build Service Account <lnxbuild@localhost> Merge "hwc: Call MSMFB_DISPLAY_COMMIT even if FB handle is null."
5070c694011ddc30673ec68a9d1d74dc713c49f2 10-Feb-2013 Duy Truong <dtruong@codeaurora.org> Update copyright to The Linux Foundation

Change-Id: I145b66896159ff9886ed73507f17b3165ba0266d
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
2a67868e6e048684c4a505f74808c3a2aba63c79 06-Feb-2013 Saurabh Shah <saurshah@codeaurora.org> hwc: Call MSMFB_DISPLAY_COMMIT even if FB handle is null.

Call MSMFB_DISPLAY_COMMIT for primary FB even if FB handle is null.
This is already done for external FB.

Change-Id: I5c405f933ce0fd99df6813acea45169802c54226
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
622cec36a22ac760cc4a1571b7e55da96ee919c5 15-Jan-2013 Naseer Ahmed <naseer@codeaurora.org> gralloc: Remove update rect

SurfaceFlinger does not use this feature any more.
Removing this to avoid usage of reserved flags.
If this is needed again, it can be added with metadata
in the display commit ioctl

Change-Id: Iaf3f14a910ad64c83abb0910fad4a999b663c545
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
bf01d2f3c5b62639cf2c4da595f7c709aac7ad1d 08-Jan-2013 Ken Zhang <kenz@codeaurora.org> display: use metadata ioctl to get panel frame rate

Get rid of using reserved fields

Change-Id: Ia3ada294427812e8382f744964f475403f6fb73a
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
24d9206a62cf511cf3de264cfc8bdcd39511818e 16-Dec-2012 Linux Build Service Account <lnxbuild@localhost> Merge "gralloc: Mark framebuffer as ION memory"
3ba3431c8b63c3f198bb7b74395d5b6f01bc0a3a 13-Dec-2012 Naseer Ahmed <naseer@codeaurora.org> gralloc: Mark framebuffer as ION memory

Change-Id: I859d4d03b62279b7e66ba52e3215fe7394a63434
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
60c9d991c91f6fa265410f1dc463bbee2c705153 03-Dec-2012 Ken Zhang <kenz@codeaurora.org> hwc: Remove buffer_fence definition as it is not used

Change-Id: If5f4beceda0229c9f48b6b1ee74e23a95f14863a
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
16791f95b2570b9d48fa360875676e9c8559c0a1 29-Nov-2012 Naseer Ahmed <naseer@codeaurora.org> libhwcomposer: Add support for 4 layer MDP Comp

This change extends MDP composition to support
upto 4 layers by making border fill as base pipe and
using all MDP h/w pipes in overlay mode.

Conflicts:

libhwcomposer/hwc.cpp
libhwcomposer/hwc_utils.cpp
libhwcomposer/hwc_utils.h

Bug: 7626586
Change-Id: I01a0e53ddfbcf3ed46734f6f3bb0ef7d912ceac6
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
8cc5d853c3125df5867ce35a10d7a01dd51d48c6 05-Oct-2012 Saurabh Shah <saurshah@codeaurora.org> hwc: more error checks

-- numHwLayers==1 means that there is only the FB_TARGET which HWC shouldn't
draw. Also check for blank in set. Checking for this in prepare prevents us
from acquiring pipes.
-- add null check for private handle
-- print out vsync timestamp data on error

bug: 7274417
related-to-bug: 7288769
Change-Id: I8dae0d0748c5226fdc33ed8f5cc5259835dec2de
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
553d102770ff11f143975246bec03e1be44f53f0 02-Oct-2012 Saurabh Shah <saurshah@codeaurora.org> gralloc: Send first 2 FB buffers to carveout and next to IOMMU

Gralloc uses the GRALLOC_USAGE_HW_FB flag to allocate memory from carveout.
This is fine for primary framebuffer, but for external framebuffer we need IOMMU
heap buffers, since the ioctls for external work with those.

Ideally, the primary buffers also need to come from IOMMU heap, which is ongoing
work. This patch allocates the first 2 FB buffer requests (assuming they are for
primary) from carveout and allocates all subsequent buffers from IOMMU heap.

Bug: 7124159
Change-Id: Ie53b2e1e7fcac136acd2d251f39cefe367fc7125
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
65de164e68eb92e0c54e4e086d7c3da1f6eef5f0 02-Oct-2012 Naseer Ahmed <naseer@codeaurora.org> hwc: Use asynchronous commit ioctl for display post

bug: 7274951

Change-Id: I70b2a00d6a2558f533bd87c92038774126434f03
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
2e449280f98f003bb5831c274fc07ab722ac1a94 18-Sep-2012 Saurabh Shah <saurshah@codeaurora.org> hwc: hwc 1.1 implementation

Bug: 7124159

--External disabled
--MDP comp coded but disabled.
--Videos via overlay, so that secure videos can work.

Change-Id: Ie48b264143d5e4237ab9724e28930e3f68ba49ee
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
4ec1650461835b83314466d40c94c2a309af1489 11-Sep-2012 Saurabh Shah <saurshah@codeaurora.org> fb: Remove extra PUT_VSCREENINFO call.

Remove the extra PUT call during system startup.

Change-Id: I29287af2ee5610e749ac481c2832f41d7381ca59
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
a71a7ecd0323a16fe7728271474f8b7056c679d8 18-Aug-2012 Saurabh Shah <saurshah@codeaurora.org> hwc/fb/overlay: wait for fbpost and pan display

Draw sequence in hwc_set
--eglSwapBuffers
--wait for fb_post. Its ok to draw to External only at this point.
--draw to external | Parallel with PAN
--commit to external | Parallel with PAN
--wait for pan (happening in fb_post) to finish.

Call MSMFB_OVERLAY_SET ioctl only when params change.

These thing together ensure a correct sequence and should fix tearing and
stuttering, the latter assuming there are no other display pipeline delays.

Acked-by: Arun Kumar K.R <akumarkr@codeaurora.org>

Change-Id: Ibb0ad8485fa6b30dc6ac07ae8b25a760941c08ce
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
120005db013648071a17c71f565d2a49805dc028 16-Aug-2012 Naseer Ahmed <naseer@codeaurora.org> hwc: Fix reserved field usage

Use the top 16 bits of reserved[3] for HDMI
and the bottom 16 for FPS. A follow up patch
in the MDP driver will get rid of reserved field
usage entirely.

Change-Id: Ic9f7a2f91b46b0dec830ea54784b7775009fbe48
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
ccf943e44f9e9d615a6019459625148830039f8d 20-Jul-2012 Naseer Ahmed <naseer@codeaurora.org> hwcomposer: Add support for UI mirroring

- Uevent observer as part of Hwcomposer
- HPD, enabling/disabling external display from HWC

Change-Id: I52b4f30c78e98c5b52c86722046389f458c2dbee
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
ee7fc0347e52276d43413e91f31d72d6db99dcfb 20-Jul-2012 Naseer Ahmed <naseer@codeaurora.org> liboverlay: Refactor, bug-fixes, upgrade.

* Fix memory leak during copying pipe objects.
* Remove unused / unnecessary code.
* setMemoryId API is merged with queueBuffer.
* setParameter API is setTransform now.
* Rotator upgraded to:
--Allow different rotator hardware types.
--Remove dependency on MDP code.
--Allocate memory only during first playback,
close when the associated pipe is closed.
* Have single commit implementation.
* Include new format types.
* Remove WAIT and CHANNEL enums and usage. Replace BypassPipe with
GenericPipe. Client expected to set alignments and parameters.
Add transform combination enums.
* Allow APIs to be called in any order. Do transform calcs in commit.
Move ext type setter and getter functions.
* Add calculations for 180 transform.
* Add secure session support in rotator
* Implement all rotations in terms of H flip, V flip and 90 rotation.

Change-Id: I34a9a2a0f1255b3467a0abbaa254d0b584e901ce
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
eb8f34fd4ab764ecf2ee5557bf8655ede5b990a6 13-Jul-2012 Naseer Ahmed <naseer@codeaurora.org> framebuffer: Fix locking

The gralloc locking did not lock
the framebuffer. Use genlock to
lock the framebuffers.

Change-Id: Ie8be6f7950f6df06a2293c3df863e19cd5386479
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
0f859f6f0db0e0c05d8c319d8d597ad2731513ae 02-Jul-2012 Naseer Ahmed <naseer@codeaurora.org> display: Add QC Display utils

* Rename qcomui directory to qdutils
* Avoid inclusion of qcom_ui header
* Add class to get MDP version
* Add namespace for qdutils to prevent collison

Change-Id: I9a3f440e6b0fea1cfcc478ddca90af5df3bbb897
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
18d7edafe99fd88d6ea83282b1ccbacb290b9f3d 26-Jun-2012 Naseer Ahmed <naseer@codeaurora.org> display: Use single thread for FB post.

To support swapinterval zero a separate thread
was added to do the framebuffer post. Since we
are going to support the WAITFORVSYNC ioctl in HWC,
we can handle the zero swapinterval case there.

Change-Id: I39f960825ca4173f99a9895e0c132b70a7adccab
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
682ac42a77d1c81af7f4e0d5b761bfd0a73f4f26 04-Jul-2012 Naseer Ahmed <naseer@codeaurora.org> display: Enable triple framebuffers

Change-Id: I323c10b939277477f724c2d0a20f9c6da4899481
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
b4572b058c5462f65a9b0e784b4d5b9b14f11a2e 27-Jun-2012 choongryeol.lee <choongryeol.lee@lge.com> gralloc : apply kernel 3.4 fb screeninfo type

Since fb screeninfo type is changed in kernel 3.4,
fb ioctl is not work correctly without this patch.

Change-Id: I5d673b78bd9a1680daf77256a7d31bc78d75cda7
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
befc466069680cb8a65b1f22ad44723d949128c8 14-Jun-2012 Naseer Ahmed <naseer@codeaurora.org> qcom/display: Update HALs

- Update the display HAL from Code Aurora Forum
- Add updated overlay library
- Enable HWC with basic video going through overlay
- Cleanup some files

Change-Id: I65c687c51be458cee71213c79e03eeda962d9086
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp
a19f21d925628239ef52c8ce392fa4ada91df6fc 11-Jun-2012 Iliyan Malchev <malchev@google.com> initial GL libraries for msm8960

Change-Id: I16451c70a079894ac326d3564d96f1fbafcd4f1b
Signed-off-by: Iliyan Malchev <malchev@google.com>
/hardware/qcom/display/msm8084/libgralloc/framebuffer.cpp