[Mesa-dev] [PATCH 0/6] i965: Add RGBX, RGBA configs, even on gen9
Chad Versace
chadversary at chromium.org
Tue Jun 6 20:36:54 UTC 2017
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
--
2.13.0
More information about the mesa-dev
mailing list