[Mesa-dev] [PATCH 00/18] Wayland/GBM format cleanups and 10bpc BGR

Daniel Stone daniels at collabora.com
Thu Feb 8 14:05:50 UTC 2018


Hi,
When Ilia asked for suggestions on where to look to add 10bpc BGR
support to the GBM and Wayland EGL backends, I had a quick look; the
number of places the formats were duplicated and lossily/inconsistently
translated between rapidly annoyed me enough to just type this series
up.

This gives both the Wayland and GBM backends a single source of truth
for conversion between their native format tokens
(wl_drm/drm_fourcc/wl_shm for the three Wayland protocols, GBM format
tokens for that), DRIImage formats, bpp, and per-channel masks used to
match/derive EGLConfigs.

The very first patch is a harmless cosmetic fix, but a fix nonetheless;
the others all just move the two EGL backends towards using the single
table. The last two commits actually add the 10bpc BGR formats - by now
trivial - which obviously depends on Ilia's series to add them.

I've not actually tested 10bpc BGR, but Ilia tested it on kmscube and
Weston.

Cheers,
Daniel



More information about the mesa-dev mailing list