egl/wayland: Hoist format <-> EGLConfig definition up
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 09:32:22 +0000 (09:32 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:15 +0000 (16:17 +0000)
commit19cbca38e45b609f21fb14d75b3bffbd6c6426d6
treed991e7801849b61619a21a877e1c23dc489005ac
parent4fbd2d50b1c06a3c10f3a254e933646345123751
egl/wayland: Hoist format <-> EGLConfig definition up

Pull the mapping between Wayland formats and EGLConfigs up to the top
level, so we can reuse it elsewhere.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/egl/drivers/dri2/platform_wayland.c