egl/android: add support for gralloc 1.0

Patch adds gralloc 1.0 support and introduces format resolving
via perform or using getformat, both android_flex_layout and
android_ycbcr are supported.

v2: code and style cleanups, removed Intel specific NV12
    enum changes (Tapani)

v3: code cleanups, add missing unlock() when fail (Eric Engestrom)
    + add GRALLOC_DRM_GET_FORMAT enum for gralloc0 fallback

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
25 jobs for !377 with gralloc1 in 160 minutes and 35 seconds (queued for 67 minutes and 30 seconds)
latest detached
Status Name Job ID Coverage
  Containers Build
passed containers:ubuntu #153346

00:01:07

 
  Build+Test
passed build:make-gallium-drivers-other #153361

00:13:27

passed build:make-gallium-drivers-radeonsi #153360

00:06:58

passed build:make-gallium-drivers-swr #153359

00:12:57

passed build:make-gallium-st-clover-llvm-39 #153362

00:09:24

passed build:make-gallium-st-clover-llvm-4 #153363

00:09:29

passed build:make-gallium-st-clover-llvm-5 #153364

00:10:09

passed build:make-gallium-st-clover-llvm-6 #153365

00:09:44

passed build:make-gallium-st-clover-llvm-7 #153366

00:09:35

passed build:make-gallium-st-other #153367

00:05:44

passed build:make-loader-classic-dri #153358

00:11:07

passed build:make-vulkan #153357

00:08:08

passed build:meson-gallium-clover-llvm5 #153353

00:01:33

passed build:meson-gallium-clover-llvm6 #153354

00:01:21

passed build:meson-gallium-clover-llvm7 #153355

00:07:22

passed build:meson-gallium-drivers-other #153352

00:03:30

passed build:meson-gallium-radeonsi #153351

00:01:26

passed build:meson-gallium-st-other #153356

00:03:10

passed build:meson-gallium-swr #153350

00:05:23

passed build:meson-glvnd #153349

00:01:28

passed build:meson-loader-classic-dri #153348

00:02:59

passed build:meson-vulkan #153347

00:01:35

passed build:scons-llvm #153369

00:06:44

passed build:scons-nollvm #153368

00:07:03

passed build:scons-swr #153370

00:08:59