egl/wayland: Use visual map for config->format lookup
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 10:07:23 +0000 (10:07 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:15 +0000 (16:17 +0000)
commita9cc4edb6077e9ccda5792c240358ba01df62aed
tree252fe450970d90c1fdbf4a8edb8a824e2da25658
parent1dc013f1ee2246e683d18b968c07f6ab9cf76981
egl/wayland: Use visual map for config->format lookup

Having hoisted the format -> config map into common code, we now use it
for config -> format lookups.

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