[Mesa-dev] [PATCH 0/6] i965: Add RGBX, RGBA configs, even on gen9

Tapani Pälli tapani.palli at intel.com
Thu Jun 8 06:36:27 UTC 2017



On 06/08/2017 06:05 AM, Tomasz Figa wrote:
> On Wed, Jun 7, 2017 at 5:36 AM, Chad Versace <chadversary at 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.

// Tapani


More information about the mesa-dev mailing list