egl/android: Respect buffer mask in droid_image_get_buffers (v2)
authorTomasz Figa <tfiga@chromium.org>
Tue, 2 Aug 2016 11:07:50 +0000 (20:07 +0900)
committerChad Versace <chad@kiwitree.net>
Mon, 8 Aug 2016 18:40:31 +0000 (11:40 -0700)
commit217af75a4092545fb9f5afe4a12e0b74cb1b48e4
tree9ab70484b2637490f7f45893e5413a151ae21377
parentc6c26bc589f57c083f040ad70d1606cfa382c66a
egl/android: Respect buffer mask in droid_image_get_buffers (v2)

Drivers can request different set of buffers depending on the buffer
mask they pass to the get_buffers callback. This patch makes
droid_image_get_buffers() respect this mask.

v2: Return error only in case of real error condition and ignore requests
    of unavailable buffers.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Tested-by: Rob Herring <rob@kernel.org>
Reviewed-by: Chad Versace <chad@kiwitree.net>
Change-Id: I6c3c4eca90f4c618579f6725dec323c004cb44ba
src/egl/drivers/dri2/platform_android.c