egl/wayland: Make create_wl_buffer more generic
authorDaniel Stone <daniels@collabora.com>
Fri, 16 Jun 2017 16:29:42 +0000 (17:29 +0100)
committerDaniel Stone <daniels@collabora.com>
Tue, 18 Jul 2017 21:16:20 +0000 (22:16 +0100)
commitc4a1c7a2eb0c7429ffd10cc4aa2b83fe04e92295
treeaedfae3ba221b67898cc86b0f0d6207dbd3baca9
parent7f157a21f16296f72d005d73c301c90a98d1e662
egl/wayland: Make create_wl_buffer more generic

Remove surface-specific code from create_wl_buffer, so it's now just a
generic translation from DRIimage to wl_buffer.

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_wayland.c