[Mesa-dev] [PATCH 0/6] i965: Add RGBX, RGBA configs, even on gen9
Kenneth Graunke
kenneth at whitecape.org
Tue Jun 20 22:46:56 UTC 2017
On Tuesday, June 6, 2017 1:36:54 PM PDT Chad Versace 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
>
> src/mesa/Android.gen.mk | 12 ++
> src/mesa/Makefile.am | 7 +
> src/mesa/Makefile.sources | 2 +
> src/mesa/drivers/dri/i965/brw_blorp.c | 10 +-
> src/mesa/drivers/dri/i965/brw_context.h | 5 +-
> src/mesa/drivers/dri/i965/brw_meta_util.c | 2 +-
> src/mesa/drivers/dri/i965/brw_surface_formats.c | 94 +++++++-----
> src/mesa/drivers/dri/i965/brw_tex_layout.c | 2 +-
> src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 10 +-
> src/mesa/drivers/dri/i965/intel_fbo.c | 34 ++++-
> src/mesa/drivers/dri/i965/intel_fbo.h | 6 +-
> src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 +-
> src/mesa/drivers/dri/i965/intel_screen.c | 39 ++++-
> src/mesa/drivers/dri/i965/intel_screen.h | 5 +
> src/mesa/drivers/dri/i965/intel_tex.c | 2 +-
> src/mesa/drivers/dri/i965/intel_tex_image.c | 19 ++-
> src/mesa/main/.gitignore | 1 +
> src/mesa/main/format_fallback.h | 31 ++++
> src/mesa/main/format_fallback.py | 180 +++++++++++++++++++++++
> 19 files changed, 392 insertions(+), 73 deletions(-)
> create mode 100644 src/mesa/main/format_fallback.h
> create mode 100644 src/mesa/main/format_fallback.py
>
>
Patches 3-5 are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170620/23030983/attachment.sig>
More information about the mesa-dev
mailing list