glupload: dmabuf-direct: query formats before modifiers
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 17 Oct 2018 15:11:20 +0000 (17:11 +0200)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 30 Oct 2018 11:25:08 +0000 (12:25 +0100)
commiteb20293a028403167e347118b756171ced9d3271
treeef6b5ef949c93194edf5594e3231e67443671652
parentc4edd80c8c8f6874db473e070873d32a4d890db6
glupload: dmabuf-direct: query formats before modifiers

The EXT_image_dma_buf_import_modifiers extension [1] states regarding
eglQueryDmaBufModifiersEXT:

    The format must be one of those returned by the
    eglQueryDmaBufFormatsEXT command.

To comply with this requirement eglQueryDmaBufFormatsEXT must be called
before eglQueryDmaBufModifiersEXT.

[1] https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_image_dma_buf_import_modifiers.txt

https://bugzilla.gnome.org/show_bug.cgi?id=783521
gst-libs/gst/gl/egl/gsteglimage.c