egl/android: Only keep BGRA EGL configs as fallback
authorLepton Wu <lepton@chromium.org>
Thu, 12 Sep 2019 06:38:59 +0000 (06:38 +0000)
committerEric Engestrom <eric@engestrom.ch>
Thu, 12 Sep 2019 06:38:59 +0000 (06:38 +0000)
commit8b1912c20bb0056937fab5af301c073d1d2c3421
tree87e1dbdaefb2df3b2b101df641e90d38674efac8
parente2485bb02392f81cb9e24d8a3466cd6a2ba8d73a
egl/android: Only keep BGRA EGL configs as fallback

Stock Android code actually doesn't support BGRA format EGL
configs. It's hard coded to use RGBA_8888 as window format
for BGRA EGL configs here:
https://android.googlesource.com/platform/frameworks/native/+/1eb32e2/opengl/libs/EGL/eglApi.cpp#608
So just remove it from EGL configs if RGBA is supported.

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/drivers/dri2/platform_android.c