egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED
authorTomasz Figa <tfiga@chromium.org>
Mon, 4 Dec 2017 18:22:39 +0000 (19:22 +0100)
committerRob Herring <robh@kernel.org>
Wed, 13 Dec 2017 20:51:48 +0000 (14:51 -0600)
commit5364e73624a8adfbfa82d883ce6ce36f250c8928
tree5173d80e5e72633be5bc948c0941777ee22c846e
parentea2ee9cd199f598c7f3b28e2bd61ad299199a587
egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

There is no API available to properly query the IMPLEMENTATION_DEFINED
format. As a workaround we rely here on gralloc allocating either
an arbitrary YCbCr 4:2:0 or RGBX_8888, with the latter being recognized
by lock_ycbcr failing.

Reviewed-on: https://chromium-review.googlesource.com/566793

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