backend-x11: use DRM formats for EGLConfig
authorPekka Paalanen <pekka.paalanen@collabora.com>
Mon, 30 Sep 2019 12:29:13 +0000 (15:29 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.com>
Fri, 4 Oct 2019 09:17:18 +0000 (12:17 +0300)
commit9ddb3bc315adbc0c3951f00458fe05973fd13ef6
treee003c61e7a75d913318d0f945ebf72156dd591b0
parented20b4d983eb65752c6942a301cda2f1e1d6939a
backend-x11: use DRM formats for EGLConfig

Define a specific DRM format for the GL-renderer to render in. It goes through
fuzzy matching in egl-glue.c which ensures we get exactly the number of bits
for each channel, but does not require an exact format match.

This ensures we get the bit depth we expect instead of the first arbitrary
EGLConfig.

This should not change the current behaviour, because Mesa EGL takes care to
order the configs as apps expect.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
libweston/backend-x11/x11.c