egl/wayland: Use an array for modifiers
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 10:29:13 +0000 (10:29 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:16 +0000 (16:17 +0000)
commit4732094cff302a10c167e0cb23851c19fccddbe0
treec7a4013719a8f3079f2306290868c939d47d40b8
parent5bc49d4cbf8c7c5d465dc994d0a0d2111f742705
egl/wayland: Use an array for modifiers

Each Wayland EGLDisplay currently contains a struct with one vector of
modifiers per format, hardcoded in the header. To allow easier support
for more formats, turn this into an array of u_vectors which is opaque
outside of platform_wayland.c.

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/egl_dri2.h
src/egl/drivers/dri2/platform_wayland.c