summaryrefslogtreecommitdiff
path: root/gralloc4
AgeCommit message (Collapse)Author
2024-02-04libexynosutils: Depend on qti kernel headersHEADuminekoMichael Bestas
Change-Id: Ie15a763f678ad4d02b864ec9ee592ca206c1ea4b
2023-05-01gralloc4: Add camera write support for RGB_888Ankit 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-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 "API Feedback: rename AddServiceWithFlag with plurals (gralloc)" into ↵Charles Chen
udc-dev
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-15API Feedback: rename AddServiceWithFlag with plurals (gralloc)Charles Chen
Refactor with better names. Bug: 272102518 Test: TH Change-Id: Ia19a65cfad16a15295d000d891d9f36ea432426b
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-02Merge changes from topic "revert_enable_mfc_single_fd" into udc-devAnkit Goyal
* changes: Revert "Revert "Revert "Remove hack of offset calculation from exynos formats""" Revert "gralloc4: Do not map buffer on import" Revert "gralloc4: Add warnings for using multi-fd formats" Revert "gralloc4: Warn about multifd PlaneLayout once"
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-02gralloc4: Set the priority to -20 in init.rcAnkit Goyal
We already set the priority of gralloc threads using `AIBinder_setMinSchedulerPolicy`. But it can be unreliable as it gets reset when the work is completed and bugreports show the wrong priority. This patch aligns this priority with init.rc Fix: 236763227 Test: adb shell ps -T -eo pid,tid,pri,ni,name | rg allocator Change-Id: I3bf2321886403ca401a651d6929c79b055bf036a
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-23Merge "Publish gralloc4 to allow isolated process" into udc-devCharles Chen
2023-02-21Add AFBC_WIDEBLK to DPU capabilitiesRuofei Ma
Bug: 233392806 Change-Id: I69625ea8161bda02ccc7f090d33325e875c437cb Signed-off-by: Ruofei Ma <ruofeim@google.com>
2023-02-21Publish gralloc4 to allow isolated processCharles Chen
Allowed with a new API to add service with flags. Bug: 268016157 Test: Manual - isolated apps can access gralloc Change-Id: I1e682ed4c6a223bd06232a1282f6d47a03bbb056
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
2022-12-06Merge "Do not use "Unnamed" as default name"TreeHugger Robot
2022-11-29Do not use "Unnamed" as default nameT.J. Mercier
Nothing appears to depend on this default value, and it requires an additional condition which we remove here also. Bug: 242097812 Change-Id: I74569cf24500748d624d4e41e2bbb4348d7bbb8b
2022-11-29Merge "Use buffer_descriptor_t name for dmabuf name if provided."T.J. Mercier