egl: setup fds array correctly when exporting dmabuf
authorTapani Pälli <tapani.palli@intel.com>
Tue, 9 Apr 2019 07:43:59 +0000 (10:43 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 11 Apr 2019 07:16:03 +0000 (10:16 +0300)
commitef923088d2c72863eff8f184e1576e20e85b9d05
tree51ecf8927cde45f1bac1aa1e895ede75a054d54d
parent4122f55574f1184e73962135123be1899b1739db
egl: setup fds array correctly when exporting dmabuf

For formats with multiple planes, application will pass a num_planes
sized fds array which should be initialized properly in case fds amount
utilized by the driver is less than the number of planes.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/egl/drivers/dri2/egl_dri2.c