egl: Refuse EGL_MESA_image_dma_buf_export if we don't have a DRM fourcc.
authorEric Anholt <eric@anholt.net>
Mon, 16 Jul 2018 23:18:03 +0000 (16:18 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Jul 2018 18:26:12 +0000 (11:26 -0700)
commitf6750456c54025e30844ee345b1a1c4f997eb3eb
tree4bdc0b2d4e6331b943d3eb8aaf9bcfb5e3496240
parenta221f9709efeaf0ac901c7b0568e8aa311aa1b96
egl: Refuse EGL_MESA_image_dma_buf_export if we don't have a DRM fourcc.

The EGL CTS expects that you can make images from all sorts of things,
including things like z16 and s8, which we don't have DRM fourccs for.
Just return an error when trying to export one of those.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/egl/drivers/dri2/egl_dri2.c