egl/wayland: select the format based on the interface used
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 12 May 2017 13:19:59 +0000 (14:19 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 May 2017 15:59:45 +0000 (16:59 +0100)
commit6ef0fc400c690362b66add9c3533fae5f21d2cae
tree9954b679489f2cfa7ceb2a01590d88848e5cdd0f
parentd6ecd1647fe2f568703b533c5070a87bc3e66701
egl/wayland: select the format based on the interface used

Rather than misleadingly depending on DRI2 for the WL_DRM vs WL_SHM
formats, use the wl_drm and wl_shm interface respectively.

Fixes: a1727aa75ed ("egl/wayland: Don't use DRM format codes for SHM")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_wayland.c