egl/wayland: Ignore invalid modifiers
authorDaniel Stone <daniels@collabora.com>
Fri, 21 Jul 2017 11:05:17 +0000 (12:05 +0100)
committerDaniel Stone <daniels@collabora.com>
Mon, 24 Jul 2017 15:42:28 +0000 (16:42 +0100)
commitdd072cf4b131c8aa9e8be0ff24b70856fe39285e
tree7f8f637ecb2542616a52ca57a250b04aa864df98
parent986f9e50ded299802fc0ad63e5643f6df62c31ec
egl/wayland: Ignore invalid modifiers

If the underlying driver does not support modifiers, dmabuf will still
advertise formats through the 'modifier' event, but send them with an
invalid modifier. Ignore them if this is the case, rather than passing
them through to the driver.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Fixes: 02cc35937277 ("egl/wayland: Use linux-dmabuf interface for buffers")
src/egl/drivers/dri2/platform_wayland.c