[Mesa-dev] Concern about proposed patch "egl/android: remove HAL_PIXEL_FORMAT_BGRA_8888 support"

Lepton Wu lepton at chromium.org
Thu Aug 15 19:58:02 UTC 2019


That's interesting. The android frame work will hard coded to use
RGBA_8888 and set it as window format here:

https://android.googlesource.com/platform/frameworks/native/+/refs/heads/master/opengl/libs/EGL/eglApi.cpp#738

Do you have a custom version of android which do different code here?

For other GPU, like intel, if we choose a EGL config with BGRA ,
finally we got a wrong color on screen.

On Thu, Aug 15, 2019 at 12:49 PM Mauro Rossi <issor.oruam at gmail.com> wrote:
>
> Hi,
>
> sorry if I'm communicating in dedicated thread, but I don't know how to reply to existing one.
>
> The proposed patch is based on the wrong assumption that all drivers used with Android have RGBA_8888, which is not correct, for example nouveau does not support RGBA on primary planes, infact we have a fallback to simpler EGL query in android-x86 and we use BGRA_8888 (pixel format = 5)
>
> If patch does not solve a specific problem and it will cause a regression at least in nouveau, it is recommended to abandon the patch
>
> Thanks for your feedbacks
>
> Mauro


More information about the mesa-dev mailing list