backend-wayland: use DRM formats for EGLConfig
authorPekka Paalanen <pekka.paalanen@collabora.com>
Mon, 30 Sep 2019 12:21:19 +0000 (15:21 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.com>
Fri, 4 Oct 2019 09:17:18 +0000 (12:17 +0300)
commited20b4d983eb65752c6942a301cda2f1e1d6939a
treec99ad017b0588858a485f373ea1a7289a3004c91
parent7cbafec8ae522f919254d6e93b3e2c72699a71aa
backend-wayland: 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-wayland/wayland.c