egl/android: Add support for YV12 pixel format (v2)
authorTomasz Figa <tfiga@chromium.org>
Tue, 2 Aug 2016 11:07:54 +0000 (20:07 +0900)
committerChad Versace <chad@kiwitree.net>
Mon, 8 Aug 2016 21:18:38 +0000 (14:18 -0700)
commit3723e9826f3662ed8ff160f8f24a9b7ee2617db9
tree6f7d794ce0ebe6f1037f0c7ef33d918056befb70
parent3190c7ee9727161d627f107c2e7f8ec3a11941c1
egl/android: Add support for YV12 pixel format (v2)

This patch adds support for YV12 pixel format to the Android platform
backend. Only creating EGL images is supported, it is not added to the
list of available visuals.

v2: Use const array defined just for YV12 instead of trying to be overly
    generic.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
Tested-by: Rob Herring <rob@kernel.org>
Reviewed-by: Chad Versace <chad@kiwitree.net>
Change-Id: I4aeb2d67a95c5cdd10b530c549b23146c8f0b983
src/egl/drivers/dri2/platform_android.c