egl: Also query modifiers when exporting DMABuf
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Sun, 14 Jul 2019 18:48:11 +0000 (14:48 -0400)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 25 Jul 2019 05:14:36 +0000 (05:14 +0000)
commit08f1cefecd84f851da6d90200bd7af0ecf5bf855
tree9471616e1bc118db2fb3d452468f27f18b53d195
parent488692426266bc14138410bc98f6e3a6390e3788
egl: Also query modifiers when exporting DMABuf

This fixes eglExportDMABUFImageQueryMESA() so it will report the
modififers of the underlying image. Without this information,
re-importing will likely be broken as it is rare these days that no
modifiers are used.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Fixes: 8f7338f284cdb1fef64c ("egl: add initial EGL_MESA_image_dma_buf_export v2.4")
src/egl/drivers/dri2/egl_dri2.c