egl/main: add support for fourth plane tokens
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 30 May 2017 11:53:35 +0000 (17:23 +0530)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 30 May 2017 12:56:20 +0000 (13:56 +0100)
commitfb2a1c2327bef00014210097e7e805247f37b33d
tree7f4420dd69dd4b76eb4b1a3eb4eb7f3e6bb972a1
parent9434f057c8f4297e94e08a06257ea66e354deaa7
egl/main: add support for fourth plane tokens

The EGL_EXT_dma_buf_import_modifiers extension adds support for a
fourth plane, just like DRM KMS API does.

Bump maximum dma_buf plane count to four.

v2: prevent attribute tokens from being parsed if
    EXT_image_dma_buf_import_modifiers is not suported. (Emil Velikov)

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Varad Gautam <varad.gautam@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/main/egldisplay.h
src/egl/main/eglimage.c
src/egl/main/eglimage.h