OSDN Git Service

gralloc4: adds gralloc4 support
authorMarissa Wall <marissaw@google.com>
Fri, 24 Jan 2020 23:05:57 +0000 (15:05 -0800)
committerAlistair Delva <adelva@google.com>
Fri, 29 May 2020 18:46:11 +0000 (18:46 +0000)
commit1476c7ea85c1e0334e86ab49b0d7dea59f003e3c
tree4741a8010c0ef9a9c00cb7c22de0fb489bd9c889
parent3d804156b07dc4124b1235e9a3dcf7305fd665e9
gralloc4: adds gralloc4 support

Implements the Allocator 4.0 and Mapper 4.0 interfaces.

Some notable features of the 4.0 interface:
- buffer metadata getter/setters
- buffer flushing
- buffer debugging (buffer listing and buffer id)

Exempt-From-Owner-Approval: OWNERS.android is not being parsed

Bug: b/146515640
Test: m && launch_cvd
Test: m && launch_cvd --gpu_mode=drm_virgl
Change-Id: I27f020b4f661890bcc2817deb09ffb9af1c76f1b
26 files changed:
Android.bp
cros_gralloc/cros_gralloc_buffer.cc
cros_gralloc/cros_gralloc_buffer.h
cros_gralloc/cros_gralloc_driver.cc
cros_gralloc/cros_gralloc_driver.h
cros_gralloc/cros_gralloc_handle.h
cros_gralloc/cros_gralloc_helpers.cc
cros_gralloc/cros_gralloc_helpers.h
cros_gralloc/cros_gralloc_types.h
cros_gralloc/gralloc0/gralloc0.cc
cros_gralloc/gralloc0/tests/gralloctest.c
cros_gralloc/gralloc4/.clang-format [new file with mode: 0644]
cros_gralloc/gralloc4/Android.bp [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Allocator.cc [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Allocator.h [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4AllocatorService.cc [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Mapper.cc [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Mapper.h [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Utils.cc [new file with mode: 0644]
cros_gralloc/gralloc4/CrosGralloc4Utils.h [new file with mode: 0644]
cros_gralloc/gralloc4/android.hardware.graphics.allocator@4.0-service.minigbm.rc [new file with mode: 0644]
drv.c
drv.h
helpers.c
virgl_hw.h
virtio_gpu.c