[Mesa-dev] [PATCH 0/3] Support for Android RGBX/RGBA formats

Rob Herring robh at kernel.org
Tue Apr 19 19:38:38 UTC 2016


The RGBX/RGBA pixel formats used in the Android EGL don't get configs 
created due to the missing formats in the DRI state tracker. This series 
adds the necessary formats for configs and DRI images. Support in GBM is 
also added as it will be needed soon for Android.

AFAICT, this has been a long standing bug in Android-x86 which was 
worked around with the patch "GLSurfaceView: Be less picky about 
EGLConfig alpha sizes". With this series, this patch is no longer needed 
and several other bugs like wallpaper not getting displayed are fixed.

Rob

Rob Herring (3):
  dri/common: add MESA_FORMAT_R8G8B8{A8,X8}_UNORM formats as supported
    configs
  st/dri: add 32-bit RGBX/RGBA formats
  gbm: add GBM_FORMAT_XBGR8888 format support

 src/gallium/state_trackers/dri/dri2.c       |  9 +++++++++
 src/gallium/state_trackers/dri/dri_screen.c |  4 ++++
 src/gbm/backends/dri/gbm_dri.c              |  7 +++++++
 src/mesa/drivers/dri/common/utils.c         | 10 ++++++++++
 4 files changed, 30 insertions(+)

-- 
2.7.4



More information about the mesa-dev mailing list