summaryrefslogtreecommitdiff
path: root/gralloc4/src
AgeCommit message (Collapse)Author
2023-08-31gralloc4: Defer metadata mmap and remove metadata vaddr from handleAnkit Goyal
Fix: 213170949 Fix: 290275019 Test: Boot to home Test: VtsHalGraphicsMapperV4_0TargetTest Test: aion_test Merged-In: I559bb9081bc51fdf2d304b5cde17ac4f8cf1e138 Change-Id: I559bb9081bc51fdf2d304b5cde17ac4f8cf1e138
2023-08-31gralloc4: Remove bases from handleAnkit Goyal
Bug: 213170949 Test: Boot to home Test: VtsHalGraphicsMapperV4_0TargetTest Merged-In: I0a0a071c5fc6e304c025a53217cd798452b0c2c3 Change-Id: I0a0a071c5fc6e304c025a53217cd798452b0c2c3
2023-08-31gralloc4: Add support for custom video metadataAnkit Goyal
Bug: 289448426 Test: ag/24398869 Merged-In: I5a9e7b8a336f26705660c9e5986957c4fa6e8e0e Change-Id: I5a9e7b8a336f26705660c9e5986957c4fa6e8e0e
2023-08-30gralloc4: Fix overflow when using large width with BLOB formatAnkit Goyal
This should not flow into main as there would be proper fix to do the sizing calculation in larger depth data types. Bug: 297275730 Test: Boot to home Test: VtsHalGraphicsMapperV4_0TargetTest Test: b/297275730#comment15 Test: aion_test Merged-In: Iba6898177768dccd49c7240f11e9301d4d0f99d1 Change-Id: I9183e2463fae8a1823395ab0f04271094194f71b
2023-08-15gralloc4: Only free allocated handles in error pathGuus Sliepen
If we encounter an error while allocating handles, some error paths could end up trying to freeing more handles that we allocated so far. Also add some extra checks and logging in mali_grallic_ion_allocate() to catch incorrect calls to this function, and ensure the array of filedescriptors in handles is initialized. Bug: 241512108 Test: v2/android-platinum/health/unit/camera Change-Id: Idd2b09ed11424b110d485e10656771aafe0b20a9
2023-06-16gralloc4: Add atrace logs for allocate params and afbc initAnkit Goyal
Bug: 245053092 Bug: 277823259 Test: Perfetto trace Change-Id: Ia05668a6d99a76ca6f4e39b751069ea12de1efcf
2023-06-12gralloc4: Use framebuffer-secure for screenshot buffersAnkit Goyal
Bug: 245053092 Test: dmabuf_attribution during secure playback Change-Id: I627bf74818b88deef9d3b07cf992e0f89f18b4ee
2023-06-08Merge "Separate camera and App dmabuf heap allocation path" into udc-d1-devTreehugger Robot
2023-05-08Align with 64 for BO/BWAnkit Goyal
Fix: 271524577 Fix: 270022482 Test: gfx-gralloc-alloc-test Test: CtsMediaV2TestCases Change-Id: I6dba38d58d9e76fce8afe822f73af0049c8eb226
2023-05-01gralloc4: Add camera write support for RGB_888android14-devAnkit Goyal
Bug: 279496748 Test: Camera RGB888 allocation passes Change-Id: I2c25ac813d32aa6b03d1744209963c17cd882ce3
2023-04-18gralloc4: Update YV12 alignment to conform to platform contractAnkit Goyal
After this patch, GPU usages are not guaranteed to conform to platform's contract, but others will be. Bug: 274375412 Test: gfx-gralloc-alloc-test Test: Manually tested GPU rendering using map-graphics-buffer tool Change-Id: I3a0202c61d3e558595a856ec150d12be5a7220fc
2023-04-13Separate camera and App dmabuf heap allocation pathMartin Liu
If a device supports camera GCMA dmabuf heap, then we direct the camera's buffer allocation to use GCMA heap. Thus, we can have a better allocation latency for the camera burst allocation. Bug: 275481134 Test: camera shot and check gcma_camera heap has been used from camera by checking lsof output Change-Id: Iefde6230fc9f44ce271637aed6e0c8084f94b39b Signed-off-by: Martin Liu <liumartin@google.com>
2023-04-07Merge changes from topic "gralloc-no-ion" into udc-devAnkit Goyal
* changes: gralloc4: Choose framebuffer-secure for FB if available gralloc4: Remove redundant ion_device class and stale comments gralloc4: Remove dependence on libion_google gralloc4: Import system and vscaler heap from libion gralloc4: Remove dead code from ion
2023-04-05gralloc4: Choose framebuffer-secure for FB if availableAnkit Goyal
Bug: 245053092 Test: gfx-gralloc-alloc-test Change-Id: If72289abf0dde9701456f0d6e3fb09885b6bf529
2023-04-05gralloc4: Remove redundant ion_device class and stale commentsAnkit Goyal
Bug: 275481134 Bug: 245053092 Test: Boot to home Change-Id: I042fb7fb0cbc9656b382ca78a9c6d6ce7004bfee
2023-04-05gralloc4: Remove dependence on libion_googleAnkit Goyal
This patch also removes the allocation for NONSECURE usage bit as that is marked as invalid in mali_gralloc_usages.h Bug: 275481134 Bug: 245053092 Test: Boot to home Test: gfx-gralloc-alloc-test Change-Id: Id506dc806829b846562faed33d3270a17710f1d8
2023-04-05gralloc4: Import system and vscaler heap from libionAnkit Goyal
system, system-uncached and vscaler were the only used heaps from libion. Bug: 275481134 Bug: 245053092 Test: Boot to home Change-Id: If0f58a77640e18f4f021fe87d90fdc3e20bca5f1
2023-04-05gralloc4: Remove dead code from ionAnkit Goyal
Most of the removal comes from the fact that ion_client is always going to be 0 which helps in cleaning up all the setup code needed to make sure ion_client is valid. Bug: 275481134 Bug: 245053092 Test: Boot to home Change-Id: Icc2cdb5eb9d6235ab37de4e7449724b5c546fc3f
2023-04-04Merge "gralloc4: Disable AFBC for all IPs on NO_EXTERNAL_AFBC flag" into udc-devAnkit Goyal
2023-04-03gralloc4: Disable AFBC for all IPs on NO_EXTERNAL_AFBC flagAnkit Goyal
Bug: 276510508 Test: Swiftshader boots to home with SELinux disabled Change-Id: Iec063ca9087a5d8f08334248fdd2878fa7f5cad5
2023-04-01gralloc4: Remove local SBWC macrosAnkit Goyal
These macros were added when we didn't have kernel UAPI headers Fix: 274918858 Test: Tested with ag/22302412 Change-Id: I580bb8dce4a996493308abe1b1c97f666dfbed26
2023-03-17Merge "gralloc4: change vstride alignment to 16 for BIG" into udc-devTreeHugger Robot
2023-03-16Merge changes from topic ↵Wen Chang Liu
"revert-21688145-revert_enable_mfc_single_fd-LOHBHRBITC" into udc-dev * changes: Revert^2 "gralloc4: Warn about multifd PlaneLayout once" Revert^2 "gralloc4: Add warnings for using multi-fd formats" Revert^2 "gralloc4: Do not map buffer on import" Revert "Revert "Revert "Revert "Remove hack of offset calculatio..."
2023-03-14gralloc4: Map camera write YUV420_888 to NV21Ankit Goyal
Fix: 272679097 Bug: 272748251 Test: Chat app image capture Test: Image capture in user profile Test: Faceauth Test: Normal camera usage Change-Id: I684721db56290f6df546625c056d347c3369f207
2023-03-10gralloc4: Allocate NV21 for faceauthAnkit Goyal
Fix: 272748251 Test: Faceauth enroll Change-Id: I7f3800c9000760dc4f4d7816860b1ebcea7ae232
2023-03-09Revert^2 "gralloc4: Warn about multifd PlaneLayout once"Wen Chang Liu
955a611bb3a2ee61a706f22deb71cde7b0dbe96a Bug: 237824580 Test: No display artifacts after camera shot Change-Id: Ide4fd026014b54cb443d285f1036d88abde65e09
2023-03-09Revert^2 "gralloc4: Add warnings for using multi-fd formats"Wen Chang Liu
e21346e84c6e0377f49416d64f5d94688c6b3619 Bug: 237824580 Test: No display artifacts after camera shot Change-Id: Ida57fabe407fcd385b2d16808adcaee12a938d3b
2023-03-09Revert^2 "gralloc4: Do not map buffer on import"Wen Chang Liu
36922f185ec93280afe71c9e323001a75ba10a0a Bug: 237824580 Test: No display artifacts after camera shot Change-Id: I83c285c597e2b153045923945b8c31776481c16c
2023-03-09Revert "Revert "Revert "Revert "Remove hack of offset calculatio..."Wen Chang Liu
Revert submission 21688145-revert_enable_mfc_single_fd Reason for revert: integrating with camera single-fd format Reverted changes: /q/submissionid:21688145-revert_enable_mfc_single_fd Bug: 237824580 Test: No display artifacts after camera shot Change-Id: I3ccc9268d67fb5c5b66ebd02807690b88a0bcb42
2023-03-09Merge "gralloc4: change to MFC prefer single-fd format" into udc-devOwen Kim
2023-03-04Merge "gralloc4: update config for R_8 format" into udc-devWeizhung Ding
2023-03-02gralloc4: change to MFC prefer single-fd formatwenchangliu
Before common format finish for Big and MFC. Use MFC format by default for 420_888 and IMPLEMENTATION_DEFINED. Bug: 266873468 Test: Media/Camera CTS Change-Id: I086cb8d774e23a886771570fbdc9e2ffc0b39b61
2023-03-01Revert "Revert "Revert "Remove hack of offset calculation from exynos formats"""Ankit Goyal
This reverts commit 2818a8cfe88388af03c45806e1fc8074335a1aba. Bug: 269705937 Test: No display artifacts after camera shot Change-Id: If74e97dda9dad7b63ae145386b76d9d8f6d14ee4
2023-03-01Revert "gralloc4: Do not map buffer on import"Ankit Goyal
This reverts commit 43ab868f19edb307808e3c40b7df2bca5c0ecb4e. Bug: 269705937 Test: No display artifacts after camera shot Change-Id: Id37bd48b14e90859b5e5f9f3e0bfe706873961aa
2023-03-01Revert "gralloc4: Add warnings for using multi-fd formats"Ankit Goyal
This reverts commit fc18d4c806f9abd4098a8af576dad68331fccd70. Bug: 269705937 Test: No display artifacts after camera shot Change-Id: If5743a82f6d008e7a22c71c13d6a27ea574d7cdf
2023-03-01Revert "gralloc4: Warn about multifd PlaneLayout once"Ankit Goyal
This reverts commit 370e40a3db70425e6bae5dc9c22fc4bd6e0fa3b4. Bug: 269705937 Test: No display artifacts after camera shot Change-Id: I8a044c10cf4e01786e30813cc703569ee2024baa
2023-03-01gralloc4: update config for R_8 formatWeizhung Ding
Bug: 269535480 Test: no error log with R_8 format Change-Id: I3fc0bb26ca8939e01972ce7f8daeac048f731813
2023-02-21Add AFBC_WIDEBLK to DPU capabilitiesRuofei Ma
Bug: 233392806 Change-Id: I69625ea8161bda02ccc7f090d33325e875c437cb Signed-off-by: Ruofei Ma <ruofeim@google.com>
2023-02-21gralloc4: change vstride alignment to 16 for BIGwenchangliu
- 16B vstride for HAL_PIXEL_FORMAT_GOOGLE_NV12_SP - 16B vstride for HAL_PIXEL_FORMAT_GOOGLE_NV12_SP_10B Bug: 267636459 Test: AV1 Playback with specific resolution Change-Id: I79f3cc7cd5a431e3c16a9fda7c4e2f23df445775
2023-02-17gralloc4: Warn about multifd PlaneLayout onceAnkit Goyal
Bug: 237824580 Test: Boot to home Test: Camera viewfinder, video and shot Change-Id: I7f7dc8bb955779ac00e6e7545c54c6ba3d99b4d6
2023-02-15gralloc4: Add warnings for using multi-fd formatsAnkit Goyal
Bug: 237824580 Test: 1080p and 2160p video playback with device and client composition Change-Id: I8a53e353f42af40e0187a4919df6b5b732276839
2023-02-14gralloc4: Do not map buffer on importAnkit Goyal
Bug: 182885532 Bug: 237824580 Test: Video playback (AV1, H264) on P10 Test: Tested manually by wenchangliu@ Change-Id: I388d722c98cf68d0a1bfadff1d047b9921a80714
2023-02-14Revert "Revert "Remove hack of offset calculation from exynos formats""Ankit Goyal
This reverts commit cae627b1fd45676ca3a7a3e8a425bda968bdbe47. Change-Id: Ibb78612cf53179cfe9b889228d4a4510e64178d7
2023-02-09Merge "gralloc4: perfer P010_SPN for MFC"Wen Chang Liu
2023-02-08gralloc4: Remove minimum size requirement for AFBC buffersAnkit Goyal
Bug: 258416590 Test: Mali integration tests Change-Id: Ib9a1a82608908a4766f49d14e756ceb3247a100c
2023-02-08gralloc4: perfer P010_SPN for MFCwenchangliu
Before common format finish for Big and MFC. Use MFC format by default for YCBCR_P010 when buffer have HW encoder/decoder usage flags. Bug: 229547170 Bug: 267738300 Bug: 267744065 Test: record by multistreamcam.apk Test: atest CtsMediaDecoderTestCases:ImageReaderDecoderTest Test: atest CtsMediaV2TestCases Change-Id: Id60eda92b16b8cc0b4ff28617b72ef9d9b5d6eff
2023-01-20gralloc4: Do not CPU align for RAW10 formatsAnkit Goyal
Bug: 261638967 Test: Camera team tested it Change-Id: I5dede8ea1b902ad0243a6da5aa563c910490ed3b
2023-01-18Merge "Support single fd formats for MFC codec"Wen Chang Liu
2023-01-17Support single fd formats for MFC codecwenchangliu
- 128B stride for HAL_PIXEL_FORMAT_EXYNOS_YCbCr_P010_SPN - 64B stride for HAL_PIXEL_FORMAT_EXYNOS_YCbCr_420_SPN - 16B vstride for both format Bug: 229547170 Bug: 238360304 Test: atest gfx-gralloc-alloc-test Test: atest gfx-gralloc-common-formats-test Change-Id: I39fe3da3046b10a3e2443425c8aa661d48aaee28
2023-01-06gralloc4: Fix validation order for handleAnkit Goyal
Fix: 263940253 Test: Raven boots to home Test: VtsHalGraphicsMapperV4_0TargetTest Change-Id: I4e6551718ba2eaf45d7e069bf1e66938f00efd7d