summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-02Merge changes Ifb3fb740,Id59480e7 into sc-v2-dev am: b69e0a1dd0Ankit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16135719 Change-Id: Iafd00f78da3bb5bdd36cd6fddd4fdf8a00f153b8
2021-11-02Merge changes Ifb3fb740,Id59480e7 into sc-v2-devandroid12L-devAnkit Goyal
* changes: Revert "Add delayed logger to allow logging verbose/info logs as warnings" Revert "Commit all gralloc logs to warning on high memory allocation"
2021-11-02gralloc4: Do not hold reference for dumping in allocator am: 0e8b1d64d8 am: ↵Ankit Goyal
6f338e896b Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16074853 Change-Id: I5ce92af1c9e5038961c289cb83a100d3d1e82f9a
2021-11-02gralloc4: Delete the gralloc handle when freeing the buffer am: 4ffbe198a4 ↵Ankit Goyal
am: 7ff0eb4617 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16074852 Change-Id: Ie668018555093393bf7fa7f4506843a1dfdf9695
2021-11-02gralloc4: Do not hold reference for dumping in allocator am: 0e8b1d64d8 am: ↵Ankit Goyal
e9a2becaba Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16074853 Change-Id: Ib470174fc4649c00eee494621a59b45c7f20eca8
2021-11-02gralloc4: Delete the gralloc handle when freeing the buffer am: 4ffbe198a4 ↵Ankit Goyal
am: 40d670ab74 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16074852 Change-Id: I36cb310bcf56dbebfd9fafbaaeb373a5f2f8318b
2021-11-02gralloc4: Do not hold reference for dumping in allocator am: 0e8b1d64d8Ankit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16074853 Change-Id: I1560d33c8f09c6f44824bb590c31ee4806acffa1
2021-11-02gralloc4: Do not hold reference for dumping in allocator am: 0e8b1d64d8Ankit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16074853 Change-Id: I5c73a63d4db00e4b5fdbdcea1c5d99638b6b518b
2021-11-02gralloc4: Delete the gralloc handle when freeing the buffer am: 4ffbe198a4Ankit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16074852 Change-Id: I09155ca85758929e02b00adeb9ed5b272e11f2de
2021-11-02gralloc4: Delete the gralloc handle when freeing the buffer am: 4ffbe198a4Ankit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16074852 Change-Id: I1a9de08f6fd847c8e488aa16ee55ee1d72964d8c
2021-10-29Revert "Add delayed logger to allow logging verbose/info logs as warnings"Ankit Goyal
This reverts commit d91ca7bd043f4bae411f298000726176c083d5b3. Delayed logging leads to computing all the logging macros (ALOGV etc) when they should be skipped. This leads to performance bottlenecks. Bug: 204428645 Test: Builds Change-Id: Ifb3fb740169047aace14cfe202c663bd54625a4e
2021-10-29Revert "Commit all gralloc logs to warning on high memory allocation"Ankit Goyal
This reverts commit 56831666f59b6bf33e1837669b6f752f973d0755. Delayed logging leads to computing all the logging macros (ALOGV etc) when they should be skipped. This leads to performance bottlenecks. Bug: 204428645 Test: Builds Change-Id: Id59480e77d0004b802d8dbe1fe26c69cd8550141
2021-10-27Remove ndk_platform backend. Use the ndk backend. am: 52ccf58b8f am: ↵Jiyong Park
e215962343 am: 802ae94946 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16120899 Change-Id: I317519338966dad719b9a5bd973f9b6d734b6502
2021-10-27Remove ndk_platform backend. Use the ndk backend. am: 52ccf58b8f am: e215962343Jiyong Park
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16120899 Change-Id: I862ffbd38bd5d58a147cbb4d4a4d1f883188d950
2021-10-27Remove ndk_platform backend. Use the ndk backend. am: 52ccf58b8fJiyong Park
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16120899 Change-Id: I607f07c9bd3c432462f9fbf42ad7a856f69df866
2021-10-26Remove ndk_platform backend. Use the ndk backend.Jiyong Park
The ndk_platform backend will soon be deprecated because the ndk backend can serve the same purpose. This is to eliminate the confusion about having two variants (ndk and ndk_platform) for the same ndk backend. Bug: 161456198 Test: m Merged-In: Icc9af3798ac89742fa56b1cb37d8116d99b4a9c2 Change-Id: Icc9af3798ac89742fa56b1cb37d8116d99b4a9c2 (cherry picked from commit 567dfa8a668dd271f739711ad7dd6889f33b4d1f)
2021-10-18gralloc4: Do not hold reference for dumping in allocatorAnkit Goyal
Dump buffers are only per process and is not available at the allocator level. Gralloc should not be holding reference to that while allocating a buffer. Fix: 199336554 Test: Do not observe leaks in heap profiling Change-Id: If92cffb2db9ee30ab1a5cee0297d066138c60674
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-10-13Fix unused-command-line-argument warning am: 5e1a4e3429 am: ea5ea5ec6cYi Kong
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16046848 Change-Id: I6370e3aad6e4316ba5ba49c01c401a75a19edbe7
2021-10-13Fix unused-command-line-argument warning am: 5e1a4e3429Yi Kong
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/16046848 Change-Id: I637f85cc79b39cf79d1525274cd68b64a892b21f
2021-10-13Fix unused-command-line-argument warningYi Kong
-ldl is not needed. Test: presubmit Bug: 197177755 Change-Id: Ie8658d5f845d4343d8d80adb9297d7547b05ff7e Merged-In: Ie8658d5f845d4343d8d80adb9297d7547b05ff7e (cherry picked from commit 2e3e154a8b08d94695b6d4accd56bf3de0b82b89)
2021-10-08Merge "Maximize the priority of gralloc allocator thread" into sc-qpr1-dev ↵Ankit Goyal
am: 03316c5e63 am: 4a22219182 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15980928 Change-Id: I3918775ea8f92083017ae349300f8e1e54e39101
2021-10-08Merge "Maximize the priority of gralloc allocator thread" into sc-qpr1-dev ↵Ankit Goyal
am: 03316c5e63 am: a5b22cb7b8 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15980928 Change-Id: I0db524c37db3d27cc3c1d8c3ad5b6b0f90922436
2021-10-08Merge "Maximize the priority of gralloc allocator thread" into sc-qpr1-dev ↵Ankit Goyal
am: 03316c5e63 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15980928 Change-Id: I82a2e9adbe0de6838f891cd4d1481171c782d8b0
2021-10-08Merge "Maximize the priority of gralloc allocator thread" into sc-qpr1-dev ↵Ankit Goyal
am: 03316c5e63 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15980928 Change-Id: I65a579d1cf229b975a22c2867d5fc3d89bfe0196
2021-10-08Merge "Maximize the priority of gralloc allocator thread" into sc-qpr1-devAnkit Goyal
2021-10-05Add plane layout for R8 and RG88 formats am: 94d6294954 am: 5489b4d8acAnkit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15940618 Change-Id: Ia9bc8fe4655296b1ddfae9ad0a59719ded23a08b
2021-10-05Add plane layout for R8 and RG88 formats am: 94d6294954 am: 027e9ab1b2Ankit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15940618 Change-Id: I0fd50924c74d5c3543fdf3c319922cb519589dd6
2021-10-05Add plane layout for R8 and RG88 formats am: 94d6294954Ankit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15940618 Change-Id: If895a93518bc2ec2bb50eb007a4ecd1c16926262
2021-10-05Add plane layout for R8 and RG88 formats am: 94d6294954Ankit Goyal
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15940618 Change-Id: I4785162db8b75188ea3735b0f2188445ee2e122c
2021-10-05Maximize the priority of gralloc allocator threadAnkit Goyal
Bug: 201933520 Test: Boot to home Change-Id: I125493e6b06436e4daac73c208cd5ca5ab4b68bd
2021-10-04Add plane layout for R8 and RG88 formatsAnkit Goyal
Bug: 197289575 Test: Capture shot from UW camera, notice no failure logs Change-Id: If41bf5501fe5bdb25300b78c8cda34e1dd353645
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12 am: a48bf1aa7e ↵wenchangliu
am: cfbe775ebb am: 27137dba39 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15898342 Change-Id: I5d9be55ff55558f0df4eeedb8044f79089b4ab28
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12 am: a48bf1aa7e ↵wenchangliu
am: cfbe775ebb am: cb7f843711 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15898342 Change-Id: I4b6eb247389cd5cace61a1def1062e4cded7f6f3
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12 am: a48bf1aa7e ↵wenchangliu
am: 6d608c0389 am: a1010a3bf6 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15898342 Change-Id: I2c16890e412530729f20ec97315ca6e309ad348b
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12 am: a48bf1aa7e ↵wenchangliu
am: cfbe775ebb Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15898342 Change-Id: I2a7215fb55d1344c20670d33c6afc957e661a1de
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12 am: a48bf1aa7e ↵wenchangliu
am: cfbe775ebb Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15898342 Change-Id: Iefeafeadfeef5636706aa7838bf4ad5f7d0946c5
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12 am: a48bf1aa7e ↵wenchangliu
am: 6d608c0389 Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15898342 Change-Id: I4fca10142b3edb0705e9c5b31d43fd48f564e4c7
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12 am: a48bf1aa7ewenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15898342 Change-Id: I21a4ec0fa4f2cc2f26bc6dd1abf6d54b17216aba
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12 am: a48bf1aa7ewenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15898342 Change-Id: Iea245d1e42a77475c52e17d8092e26dd6608269c
2021-09-24Add missing 16 alignment constraint of chroma stride for YV12wenchangliu
Exynos encoder need 16 stride alignment for both luma and chroma in YV12. Add 32 stride alignment for luma to ensure we meet the requirement. This change will not impact the decoding case since we use 64 stride alignment by default. Bug: 201012738 Test: run vts -m VtsHalMediaC2V1_0TargetVideoEncTest Change-Id: I7086366bfaf4f589e878c732b30b615034ccfa20
2021-09-17Fix YV12 stride alignment issue am: 313da845be am: 32eec58e8b am: a787a8bd19wenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15836688 Change-Id: I79ecdad14453be06b2fcaa689fc02b10ed48b9f0
2021-09-17Fix YV12 stride alignment issue am: 313da845be am: 32eec58e8b am: 2e6cd3da92wenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15836688 Change-Id: Id6755474bbf9f172164a8daf2b51c5836874e0c0
2021-09-17Fix YV12 stride alignment issue am: 313da845be am: e23ef4b341 am: ae4e8232fewenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15836688 Change-Id: I41422c124ebd20049df9caaf00f12d9c536b75e8
2021-09-17Fix YV12 stride alignment issue am: 313da845be am: 32eec58e8bwenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15836688 Change-Id: I1bc24d7e344b3212f89f2f134c774e79e7f71977
2021-09-17Fix YV12 stride alignment issue am: 313da845be am: 32eec58e8bwenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15836688 Change-Id: Iad82fc32c3e52a37531d806630fb1f52762e1b29
2021-09-17Fix YV12 stride alignment issue am: 313da845be am: e23ef4b341wenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15836688 Change-Id: Ie7d098cc7f058d783882d7b88888290fffecdea8
2021-09-17Fix YV12 stride alignment issue am: 313da845bewenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15836688 Change-Id: I969df1a67826e84717b9ee24e81358a9532aeb69
2021-09-17Fix YV12 stride alignment issue am: 313da845bewenchangliu
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/gchips/+/15836688 Change-Id: Icb01ac6e143ab633a918baca4561538f0ffa2905
2021-09-16Fix YV12 stride alignment issuewenchangliu
For some applications (TikTok, AliExpress, Shopee), the YUV layout is not requested from GraphicBufferMapper API, causing a misalignment if the resolution can't satisfy both 64 and 128 alignments. To prevent luma stride misalignment with GPU stride alignment. The luma plane will maintain the same `stride` size, and the chroma plane will align to `stride/2`. Bug: 199836131 Test: AliExpress/Shopee live streaming Change-Id: Id8dd547ff60dec7be49d777f2a63081923d5a9cf