egl/wayland: Use visual map for buffer_from_image
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 10:15:32 +0000 (10:15 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:16 +0000 (16:17 +0000)
commit3323ce72ff2d5de2fa7ad32d192c1a28ba8681e6
tree367b6e35fbf30a16fe7c37c9ec8d84a6bfdd6c7e
parenta9cc4edb6077e9ccda5792c240358ba01df62aed
egl/wayland: Use visual map for buffer_from_image

When creating a wl_buffer on an upstream Wayland display from an
existing EGLImage, use the dri2_wl_visual map rather than another
hardcoded list of formats.

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