Commit graph

9 commits

Author SHA1 Message Date
Konsta
5e001f8239 gbm_mesa: Change mapper name 2026-07-15 22:37:40 -04:00
Jason Macnak
92eb16bb24 gralloc: Move buffer metadata accessing into cros_gralloc_buffer
... to hide cros_gralloc_buffer_metadata from the AIDL/HIDL Apis.
No functional change expected.

Bug: b/321158178
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Test: vts -m VtsHalGraphicsMapperStableC_TargetTest
Change-Id: I33f17670a331385b0afe0e179cab8985b7fe78b9
2024-01-23 13:52:17 -08:00
Jason Macnak
bd616875b5 gralloc: Move buffer metadata initialization into common layer
... to dedup and support upcoming change to metadata initialization.

Bug: b/321158178
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Test: vts -m VtsHalGraphicsMapperStableC_TargetTest
Change-Id: Ib00873babcb2ec8816b0d319e675d6884594f618
2024-01-23 13:52:14 -08:00
John Reck
46f078c8b0 Support an additional option to initialize the dataspace
Test: atest AHardwareBufferTest#Allocate2WithExtras
Change-Id: Ic0620087c331beaf758c1fb56ae6b343a1b68345
2023-12-08 14:48:09 -05:00
John Reck
c825ea1c7c Support Allocator-V2 additionalOptions
CF doesn't support any additional options, so just reject
anything set on it.

Test: VtsHalGraphicsAllocatorAidl_TargetTest
Bug: 257075040
Change-Id: If86790bee805af27c2bf6fda3ed2b18351f5fd38
2022-12-19 16:37:56 -05:00
John Reck
aefe9340f4 Initial implementation of IMapper 5
Test: atest VtsHalGraphicsMapperStableC_TargetTest
Change-Id: I7fd047e3b53fbf659595baa9f34eb1b979ef1f89
Merged-In: I7fd047e3b53fbf659595baa9f34eb1b979ef1f89
2022-12-01 17:38:35 +00:00
Jason Macnak
0f93723f43 Reland: gralloc: Adds Minigbm AIDL allocator
The switch from HIDL to AIDL does not introduce any new interface
methods.

This reverts commit 95b765d807.

Reland notes:

- Avoids using `minigbm_cros_gralloc_library_defaults`
for new `libminigbm_gralloc4_utils` to avoid having two libraries
compiling cros_gralloc_driver.cc.

- Makes `libminigbm_gralloc4_utils` a shared library.

Bug: b/223410512
Test: cvd start
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Test: cvd start --gpu_mode=gfxstream
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Change-Id: I69c4014a44b1bfe07ebc309b1c52e292100913c4
2022-03-16 14:01:16 -07:00
Lev Rumyantsev
95b765d807 Revert "gralloc: Adds Minigbm AIDL allocator"
Revert submission 17143242-cherrypick-minigbm-allocator-aidl-twsnybob5q

Reason for revert: b/224637687
Reverted Changes:
Iaf309fcbd:Add Minigbm Gralloc AIDL allocator
Idd114498c:gralloc: Adds Minigbm AIDL allocator

Change-Id: Ia8002ec629a16286e9efcca3cb8fb5a105dd86e5
2022-03-15 20:18:54 +00:00
Jason Macnak
7d0aa67904 gralloc: Adds Minigbm AIDL allocator
The switch from HIDL to AIDL does not introduce any new interface
methods.

Bug: b/223410512
Test: cvd start
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Test: cvd start --gpu_mode=gfxstream
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Test: vts -m VtsHalGraphicsMapperV4_0Target
Change-Id: Idd114498c79bd48502e370c6144d8f08693e3781
2022-03-10 14:42:35 -08:00