History log of /hardware/qcom/display/msm8994/libgralloc/mapper.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
86384cfc3e03e37fcff03900d2150e373e9ed864 13-Dec-2016 Chia-I Wu <olv@google.com> gralloc: use libgralloc1-adapter in MSM8994

This adds some new data members to private_handle_t. The new data members
are needed to support GRALLOC1_ADAPTER_PERFORM_GET_DIMENSIONS, etc. All
HALs that include gralloc_priv.h need to be recompiled.

When TARGET_USES_GRALLOC1 is true, the gralloc HALs advertise gralloc 1.0
support (see ADVERTISE_GRALLOC1).

Test: builds and boots
Bug: 33398719
Change-Id: I61e9addfd11dd65e6843163c3ba667e0f95bac16
/hardware/qcom/display/msm8994/libgralloc/mapper.cpp
2187f56aebb6eda135b106d3ab9f2086d0409d67 23-Sep-2016 Colin Cross <ccross@android.com> Merge "Fix format warnings in hardware/qcom/display" am: ce3c060962 am: e160c256ba
am: 7ff6e1a2e2

Change-Id: I3edf5df7a427849a9098cf539ea69264e925cb3d
abe67dd75cce255d3449ce9af5fa37109c83444e 22-Sep-2016 Colin Cross <ccross@android.com> Fix format warnings in hardware/qcom/display

system/core/include is included in the global include path using
-isystem, which hides log format warnings when built with gcc.
Fix the warnings in preparation for switching from -isystem to -I.

Test: lunch aosp_angler-userdebug && m -j
Bug: 31492149
Change-Id: Ie75967aa30bae2e9bebbd65efe0ff570a80203fd
/hardware/qcom/display/msm8994/libgralloc/mapper.cpp
51b4299f42c61d3a919c8e86c38a85f40902226b 03-May-2016 Naseer Ahmed <naseer@codeaurora.org> gralloc: Fix "Return an error if the buffer was not mapped"

Let graphics map the buffer in registerBuffer, except secure
buffers. Avoid map in register (and at allocation time) can be
done when retain/release is implemented in gralloc 1.0

Bug: 28526999
Bug: 30404840
Change-Id: I208316b89edffc7486fe74deb1b9e3352d230223
CRs-fixed: 1010697
/hardware/qcom/display/msm8994/libgralloc/mapper.cpp
b7d1a389b00370fc9d2a7db1268ce26271ead7e2 03-May-2016 Naseer Ahmed <naseer@codeaurora.org> gralloc: Return an error if the buffer was not mapped

In some cases, the framework attempts to lock a secure buffer.
Since it does not get an error code from the lock, it proceeds to
dereference the base address (which is invalid). Return an error
code when a secure buffer is attempted to be locked, while still
ensuring that the metadata is mapped.

Since we return a proper error in lock(), register buffer fails.
Since a map should not be done in registerBuffer per the gralloc
spec, only map the metadata here. Clients that need to access
memory in CPU after registerBuffer should do a lock().

Note, this is a resubmission of a previous change whose Change-Id
was I74204931fa61524f1601dd99ab266219d4be2c82. Patch set 4 was
initially submitted instead of patch set 6.

Change-Id: I68124902d0b614702622dc948e13270fc86e16a6
CRs-fixed: 1010697
Bug: 28526999
/hardware/qcom/display/msm8994/libgralloc/mapper.cpp
f026d04dde743a0524235ae57e2ce8ac5364d44b 13-Jun-2016 Steve Pfetsch <spfetsch@google.com> Revert "gralloc: Return an error if the buffer was not mapped"

This reverts commit 3261eb2236252f9f2510c008fad451411a780b3b.

Bug: 28526999
Change-Id: I755627af7567c49e7500e92de1124587b1086b38
/hardware/qcom/display/msm8994/libgralloc/mapper.cpp
3261eb2236252f9f2510c008fad451411a780b3b 03-May-2016 Naseer Ahmed <naseer@codeaurora.org> gralloc: Return an error if the buffer was not mapped

In some cases, the framework attempts to lock a secure buffer.
Since it does not get an error code from the lock, it proceeds to
dereference the base address (which is invalid). Return an error
code when a secure buffer is attempted to be locked, while still
ensuring that the metadata is mapped.

Since we return a proper error in lock(), register buffer fails.
Since a map should not be done in registerBuffer per the gralloc
spec, only map the metadata here. Clients that need to access
memory in CPU after registerBuffer should do a lock().

Bug: 28887585
Bug: 28791974
Bug: 28526999
Bug: 29034950

Change-Id: I74204931fa61524f1601dd99ab266219d4be2c82
CRs-fixed: 1010697
/hardware/qcom/display/msm8994/libgralloc/mapper.cpp
05d37027d2422f070136f2117e9a4a6464714f25 26-May-2016 Naseer Ahmed <naseer@codeaurora.org> gralloc: Fix a missed unmap.

Change I86300a1b4e3008f9d0884940420e9036c47a016f introduces a
regression by mapping metadata part of secure buffers, but not
unmapping that. This change fixes the map/unmap asymmetry.

Bug: 28887585
Bug: 28791974
Bug: 28526999
Bug: 29034950

Change-Id: I078eef1139642bd6d8a01145ab1c81060621fb8d
Acked-by: Saurabh Shah <saurshah@codeaurora.org>
/hardware/qcom/display/msm8994/libgralloc/mapper.cpp
054df959aef7dce630a7f41d4aba6626c130756b 12-Mar-2015 Patrick Tjin <pattjin@google.com> msm8994: import msm8994/msm8992 display code

AU_LINUX_ANDROID_LA.BF64.1.2.1_RB1.05.00.00.019.037

Change-Id: Ie94c9207ea736a114bfdf4f35d372ccc326d7207
Signed-off-by: Patrick Tjin <pattjin@google.com>
/hardware/qcom/display/msm8994/libgralloc/mapper.cpp