summaryrefslogtreecommitdiff
path: root/gralloc4/src/allocator
AgeCommit message (Collapse)Author
2021-10-18gralloc4: Delete the gralloc handle when freeing the bufferAnkit Goyal
Bug: 199336554 Test: Do not observe leaks in heap profiling Change-Id: Iacab8555a1f425d7746fc7ab0937ddf9b1cf23d8
2021-08-04Commit all gralloc logs to warning on high memory allocationAnkit Goyal
Bug: 192821955 Test: Manually verified Change-Id: Ib1f3cfdae6bf5280c5ee85fbbfa11f1e2da7cbdc
2021-06-21Lazy map the buffers on lockAnkit Goyal
This potentially should improve the importBuffer calls as not all clients need CPU mapped buffers. This patch needs to be thoroughly tested as there are chances it might break metadata reporting. I did the smoke test and it seems fine. Fix: 190688388 Test: Yet to be tested Change-Id: I2f98b1f9646a1336ded3747d2a24c6851a883d73
2021-04-29gralloc4: sync ion buffers around CPU usageSean Callanan
mali_gralloc_ion_sync is called if BOARD_USES_GRALLOC_ION_SYNC is set, but currently the implementation is empty. Added an implementation that passes through to libdmabufheap's sync interface. Test: Set camera permissions to "Ask every time"; reboot; launch camera Test: RealCalc Fixes: 185289225 Fixes: 186613737 Fixes: 183735780 Change-Id: I8425d2d94c0202fa2dabf8ff60d66bc8d40b6b86
2021-04-06gralloc4: make isp_preview heap accept SurfaceViewYin-Chia Yeh
Test: PTS SecurePreview test passing Bug: 184608844 Change-Id: Ia1396cfcf5df9d5bcc56c6ee34043b8548a49453
2021-04-01Gralloc 4: Handle SENSOR_DIRECT_DATA usageAnthony Han
Bug: 184185100 Test: adb shell sensor_test sample --direct hw -r 50 -s 1 -n 10 -l Verify there are no errors and samples were collected. Change-Id: I47fbdcf427862395d1d7371d3ae68a1a6e16efb6
2021-03-25[LSC] Add LOCAL_LICENSE_KINDS to hardware/google/gchipsBob Badour
Added SPDX-license-identifier-Apache-2.0 to: gralloc4/Android.bp gralloc4/interfaces/aidl/Android.bp gralloc4/interfaces/libs/drmutils/Android.bp gralloc4/service/4.x/Android.bp gralloc4/src/4.x/Android.bp gralloc4/src/Android.bp gralloc4/src/allocator/Android.bp gralloc4/src/capabilities/Android.bp gralloc4/src/core/Android.bp gralloc4/src/hidl_common/Android.bp libvendorgraphicbuffer/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL-2.0 to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ide9c2f522a0f243d21691bef347acf9f75e96707
2021-03-17Gralloc: remove unused usagesAnthony Han
SBWC_REQUEST_10BIT and HFR_MODE usages are unused in Gralloc and should be removed. Bug: 182940134 Test: build Change-Id: I0e4d3446c2e302e3b692575424d58091d213fb20
2021-03-17Gralloc 4: log human readable format namesAnthony Han
Test: gfx-gralloc-nv12-afbc-test Bug: 143246001 Change-Id: I774ded56255c63c3587eeff571566db4603f7545
2021-03-11gralloc4: Select proper FaceAuth heaps based on usagesSean Callanan
Bug: 180774763 TesT: gfx-gralloc-faceauth-test Change-Id: I930ce95b6ffa13d175baa8a1b5bcf9ccc57afd32
2021-03-11gralloc4: add usages for FaceAuthSean Callanan
Also changed which private bits are used, so that the usages no longer overlap with other usages that affect Gralloc behavior. Elimiated a few usages that we know aren't needed anymore to make room for these flags. - DAYDREAM_SINGLE_BUFFER_MODE - CAMERA_RESERVED - SECURE_CAMERA_RESERVED Also fixed the README for libvendorgraphicbuffer. Bug: 180774763 Test: build Change-Id: Iffcdbffd0ef212ab0d2a1b5676173ad66a0acf6b
2021-03-09Merge "Removing VIDEO_EXT usage from our Gralloc" into sc-devSean Callanan
2021-02-26gralloc4: Enable use of vstream-secure/vframe-secure DMA-BUF heaps.Hridya Valsaraju
Bug: 178865267 Test: build Change-Id: Icca8296db7155fc87e0d3d41221f6837fef3eda9
2021-02-25gralloc4: use the faceauth DMA-BUF heapsHridya Valsaraju
This patch enables the use of the faceauth DMA-BUF heaps. Bug: 178865267 Test: build Change-Id: Ia9c071a936e1a3b3854d3215e36a60171f27dd37
2021-02-25Removing VIDEO_EXT usage from our GrallocSean Callanan
Bug: 181240527 Test: boot Change-Id: Id72d108cd5f40ccd636adcce0ea94d2583c22269
2021-02-10Merge changes I3f51a205,Ib67627c9 into sc-devTreeHugger Robot
* changes: gralloc4: Remove references to unused ION flags gralloc3: remove references to unused ION flags
2021-02-02gralloc4: Remove references to unused ION flagsHridya Valsaraju
These flags are not supported by the device's ION heap implementation. Hence, references to them can be deleted here. Test: boot, video playback Bug: 170772980 Change-Id: I3f51a20562e58809f51f4e42f803a002e32bf4fd
2021-01-28Gralloc 4: Implement libGralloc4WrapperAnthony Han
Port libGrallocWrapper to libGralloc4Wrapper. Add a new optional parameter to the standard allocation path that sets the Gralloc fd to a user provided fd instead of having ion allocate an fd. Add metadata to libGralloc4Wrapper implementation, amend DRM table to support new formats. Test: aion_test Bug: 168763166 Change-Id: I3776b1cf2488969fa0ff2f0d744f329048008719
2021-01-28Gralloc 4: Build wrapperAnthony Han
Port Gralloc 3's libGrallocWrapper to Gralloc 4, it shares the same interface so no modifications are needed for AIon yet. Currently it trivially allocates a Gralloc buffer using the standard allocation path and does not substitute ion fd with the provided fd yet. Bug: 168763166 Test: mm libGralloc4Wrapper Change-Id: I367ebac2d6e3bb9d530be13f4e88a109838232b9
2021-01-27gralloc4: Use libdmabufheap in gralloc4 for sensor_direct allocationsHridya Valsaraju
Use libdmabufheap instead of libion for sensor_direct allocations. Bug: 173440990 Test: build Change-Id: Ib340511c83941c8305a0f5047ca3a6b49a2f4386
2021-01-07Always alloc uncached buffers for sensor direct heap.Max Shi
Bug: 152340424 Test: Run direct channel test with: Test: adb shell -t sensor_test sample -ihw -r10 -s2 Change-Id: I5fea8f251e622bc36a09060dca6ca5ee32b2d2ef
2020-12-21gralloc4: disable ion syncSeYeong Byeon
Bug: 173320140 Test: Builds successfully with gralloc3 and gralloc4 Test: Device boots to home with gralloc3 Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com> Change-Id: I6cb7e62c713ac234ec72218493eb1d8b2665cad9
2020-12-21gralloc4: initial codeSeYeong Byeon
Bug: 173320140 Test: Builds successfully with gralloc3 and gralloc4 Test: Device boots to home with gralloc3 No-Typo-Check: Typos in comments from upstream Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com> Change-Id: I1df105fd0358a0d1ee9c0266acafc4f7192ebc92