egl/gbm: Remove duplicate format table
authorDaniel Stone <daniels@collabora.com>
Tue, 6 Feb 2018 17:44:37 +0000 (17:44 +0000)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 16:17:16 +0000 (16:17 +0000)
commit8174e5b49e96a98a585b13074d6f1a68e70629d7
treeb49f27ac6df80776104d7865d86bdbec5f7f9ba3
parent314714ac5311c39785d16c0f03484dbaf482c52b
egl/gbm: Remove duplicate format table

Now that we have mask/channel information in gbm_dri's format conversion
table, we can remove the copy in EGL.

As this table contains more formats (notably including R8 and RG8, which
can be used for BO but not surface allocation), we now compare the masks
of all channels when trying to find a suitable config. Without doing
this, an XRGB8888 EGLConfig would match on an R8 format.

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_drm.c