egl/wayland: Add format enums to visual map
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 09:42:27 +0000 (09:42 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:15 +0000 (16:17 +0000)
commit1dc013f1ee2246e683d18b968c07f6ab9cf76981
tree912ea4b066265c8a2b6c84ebe22c4fe6b9202b40
parent66912641df480f53a0bac459fc7b6395d31c4eb3
egl/wayland: Add format enums to visual map

Extend the visual map from only containing names and bitmasks, to also
carrying the three format enums we need. These are the DRIImage format
tokens for internal allocation, FourCC codes for wl_drm and dmabuf
protocol, and wl_shm codes for swrast drivers.

We will later use these formats to eliminate a bunch of open-coded
conversions.

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