egl/wayland: Remove has_format enum
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 11:14:32 +0000 (11:14 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:16 +0000 (16:17 +0000)
commit5bc49d4cbf8c7c5d465dc994d0a0d2111f742705
tree789ae0f4e9f9c6be8a2232ecea2464d4e3aab006
parentd32b23f3830099a328b912957de881cf30a0ee7a
egl/wayland: Remove has_format enum

Instead of the has_format enum, use an index into the visual array. This
makes adding new formats less typing.

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