On 06/08/2017 09:36 AM, Tapani Pälli wrote:
On 06/08/2017 06:05 AM, Tomasz Figa wrote:
On Wed, Jun 7, 2017 at 5:36 AM, Chad Versace
<chadvers...@chromium.org> wrote:
More patches to break your formats... again ;)
The Android framework requires support for EGLConfigs with
HAL_PIXEL_FORMAT_RGBX_8888 and HAL_PIXEL_FORMAT_RGBA_8888. This prevents
Chrome OS from updating its Android drivers, because earlier this year
Intel disabled all rgbx formats for gen >=9 in brw_surface_formats.c.
This patch series safely (hopefully?) fixes that problem.
If you want the meat, read patches 2 and 6.
Chad Versace (6):
mesa: Add _mesa_format_fallback_rgba_to_rgbx()
i965: Add a RGBX->RGBA fallback for glEGLImageTextureTarget2D()
i965: Rename some vague format members of brw_context
i965/dri: Add intel_screen param to intel_create_winsys_renderbuffer
i965: Move brw_context format arrays to intel_screen
i965/dri: Support R8G8B8A8 and R8G8B8X8 configs
Thanks a lot Chad!
Just to make sure, did you have a chance to test it with X11 apps,
that were reported to have incorrect colors last time we tried
enabling these formats? I.e.
https://bugs.freedesktop.org/show_bug.cgi?id=95071
I just tested this set on Android and I'm getting wrong colors with
this, red and blue swapped.
I can 'fix' this by reordering the configs in intel_screen_make_configs
so that the new configs (RGBA, RGBX) required by Android are before the
old ones (BGRA, BGRX).
// Tapani
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev