egl/android: #ifdef out flink name support
authorRob Herring <robh@kernel.org>
Thu, 26 Apr 2018 14:02:01 +0000 (16:02 +0200)
committerRobert Foss <robert.foss@collabora.com>
Mon, 25 Jun 2018 16:54:09 +0000 (18:54 +0200)
commit3f7bca44d9a9f07eaafc5de850ec65bdd00707b9
treec0877a83541caa1943f430381474f5a977fca159
parent5a34aba07de19d12928177622cf87cdd4b7fef1a
egl/android: #ifdef out flink name support

Maintaining both flink names and prime fd support which are provided by
2 different gralloc implementations is problematic because we have a
dependency on a specific gralloc implementation header.

This mostly disables the dependency on the gralloc implementation and
headers. The dependency on GRALLOC_MODULE_PERFORM_GET_DRM_FD remains for
now, but the definition is added locally to remove the header
dependency.

drm_gralloc support can be enabled by setting
BOARD_USES_DRM_GRALLOC=true in BoardConfig.mk.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
src/egl/Android.mk
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_android.c