egl/wayland: Fix ARGB/XRGB transposition in config map
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 09:45:01 +0000 (09:45 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:06 +0000 (16:17 +0000)
commit4fbd2d50b1c06a3c10f3a254e933646345123751
treefce9c7004bda89746dc5a6152929a4b445190c13
parent76085f2048d426ae5fd35b26bae2141c6cfeba28
egl/wayland: Fix ARGB/XRGB transposition in config map

When 0b2b7191214eb moved from an if tree to a struct to map between
wl_drm formats and EGLConfigs, it transposed the mapping between XRGB
and ARGB. Luckily, everyone exposes both formats, so this is harmless.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: 0b2b7191214eb ("egl/wayland: introduce dri2_wl_add_configs_for_visuals() helper")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/egl/drivers/dri2/platform_wayland.c