Everything now builds under the same minigbm name for all platforms.
Bug: 388092228
Test: Boot corsola to desktop
Flag: EXEMPT: desktop-only change
Change-Id: I00708383151f832bcccec1aad8091f422dfcf2c3
Add build changes for mt8186.
Add ARM metadata types: compression, plane fds and data type.
Add mediatek_drm.h which is not available.
Bug: 388092228
Test: boot corsola with minigbm gralloc/mapper
Change-Id: I1f1e8a57f37e26694320c3ddee01fbad453f854b
Define vintf_fragments as modules if the file is shared among multiple
modules to avoid any conflicts.
Bug: 322089980
Test: aosp_cf_x86_64_phone build succeeded
Change-Id: I653ed96587445a3e0126b3eee415edce7b657939
It's possible to switch its backend from virtgpu_virgl to another
one later. b/195673105#comment33
Bug: 195673105
Test: mma
Change-Id: I32396118fe20e220604ad36893e9a6c690e9fd4f
gralloc4 built with libminigbm_gralloc.so and gralloc0
with libminigbm_gralloc_intel.so, causes mismatch hence
leading to get_buffer failure during CTS tests.
The commit helps to have same instance of default libraries
shared between gralloc0 and gralloc4 and fixes get_buffer
failure on intel platform.
Change-Id: I82e8b942f4a817c97cbc58efc64d55fd960767af
Signed-off-by: Nataraj Deshpande <nataraj.deshpande@intel.com>
In some cases both gralloc4 and gralloc0 mapper APIs may
be used by the single process.
For example gralloc4/mapper is always used for importing buffers
by the framework. Later those buffers may be accessed via gralloc0
API (by mesa3d for example).
Wrapping cros_gralloc code into a shared library ensures both frontends
will use a single cros_gralloc_driver instance, thus making such scenarios
possible.
Bug: 191895066
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Change-Id: I17f8f781eed42051fbfa9cf34b53346b1ec7a41b
In order to support msm devices, we need to enable -DDRV_MSM
as a build flag for both gralloc.minigbm and libminigbm_cros_gralloc.
This unfortunately requires new _msm post-fixed targets for both
gralloc.minigbm and libminigbm_cros_gralloc as well as for
the allocator and mapper HALs.
This feels a bit messy, but seems to be the only way to only
build with -DDRV_MSM on msm devices.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: Ic43967bddd40bab4622f92faebb96e679a19891d
This splits out some cc_defaults for libminigbm_cros_gralloc and
users of that library. This is needed because the underlying
minigbm_defaults needs to be built with different cflags for
different hardware, so this change allows us to share the
default build values.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I2111c325d4a206b8889a9314a5204b34a38a1ee1
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
cros_gralloc/gralloc4/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
SPDX-license-identifier-MIT
to:
Android.bp
Added SPDX-license-identifier-BSD
to:
cros_gralloc/gralloc3/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Iff770232cbc5f95eb6b015587cd670d10ad616d5
The merge in aosp/1431491 did not re-apply many of the changes
from aosp/1431490 as intended.
Bug: b/171019648
Test: launch_cvd
Test: launch_cvd --gpu_mode=gfxstream
Merged-In: Id5222980cc2e7c284a846259c808bf79cf5f2a75
Change-Id: I3a0136b6303a1b1c5e27f7e225466438e3de0616
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