egl: introduce DMA_BUF_MAX_PLANES
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 30 May 2017 11:53:34 +0000 (17:23 +0530)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 30 May 2017 12:56:20 +0000 (13:56 +0100)
commit9434f057c8f4297e94e08a06257ea66e354deaa7
tree32da5cbce52a7eac016660ccf049a2afa3e857e5
parent76aa1bbb8919c3cc2b9cb5467640bf996b8d31dc
egl: introduce DMA_BUF_MAX_PLANES

Rather than hardcoding 3, use a #define. Makes it easier to bump this
later to 4.

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/eglimage.h