EGL/android: pbuffer implementation
authorLiu Zhiquan <zhiquan.liu@intel.com>
Wed, 16 Nov 2016 02:11:28 +0000 (10:11 +0800)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 16 Nov 2016 06:15:59 +0000 (08:15 +0200)
commitb663753f3b27b2bbc14ec7552c178f9900e79954
treee09d5f8feae8d0480fccc3f4e350cf420e407f9a
parent25c60fa6a2d9861655271b5236c27aa72e48edbf
EGL/android: pbuffer implementation

Android path didn't support pbuffer, so add pbuffer support to fix
most failing dEQP and CTS pbuffer test cases.

Patch adds a single buffer config to support pbuffer, and creates
image in getBuffers for pbuffer when surface type is front surface.

The EGL 1.5 spec states that pbuffers have a back buffer but no front
buffer, single-buffered surfaces with no front buffer confuse Mesa;
so we deviate from the spec, following the precedent of Mesa's EGL
X11 platform.

V3: update commit message and code review changes.

Signed-off-by: Liu Zhiquan <zhiquan.liu@intel.com>
Signed-off-by: Kalyan Kondapally <kalyan.kondapally@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_android.c