EGL/android: Enhance pbuffer implementation
authorLiu Zhiquan <zhiquan.liu@intel.com>
Fri, 9 Dec 2016 11:29:56 +0000 (19:29 +0800)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 19 Dec 2016 06:26:32 +0000 (08:26 +0200)
commite2610bf1658971adf44f8558f652ae1a25c9a255
treeb5931907cb78d47af49b96850cc6237eebed5e7f
parent1d529cba024f8b56c4ce4ae7294c6d1bac23ad08
EGL/android: Enhance pbuffer implementation

Some dri drivers will pass multiple bits in buffer_mask parameter
to droid_image_get_buffer(), more than the actual supported buffer
type combination. For such case, will go through all the bits, and
will not return error when unsupported buffer is requested, only
return error when the allocation for supported buffer failed.

v2: coding style and log changes
v3: coding style changes and update patch format

Signed-off-by: Liu Zhiquan <zhiquan.liu@intel.com>
Signed-off-by: Long, Zhifang <zhifang.long@intel.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
src/egl/drivers/dri2/platform_android.c