egl/android: Make get_fourcc() accept HAL formats
authorTomasz Figa <tfiga@chromium.org>
Tue, 2 Aug 2016 11:07:53 +0000 (20:07 +0900)
committerChad Versace <chad@kiwitree.net>
Mon, 8 Aug 2016 18:40:41 +0000 (11:40 -0700)
commit7dfb1a4074328bcdff4b407b8f44be538180791d
tree89d2383e76524208582d095b20c138b90afa6990
parente77b4933907106238c7872cb74d0ba0b5246aee6
egl/android: Make get_fourcc() accept HAL formats

There are DRI_IMAGE_FOURCC macros, for which there are no corresponding
DRI_IMAGE_FORMAT macros. To support such formats we need to make the
lookup function take the native format directly. As a side effect, it
simplifies all existing calls to this function, because they all called
get_format() first to convert from native to DRI_IMAGE_FORMAT.

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