EGL/android: pbuffer implementation

Graphics / Mesa 3D Graphics Library / Mesa - Liu Zhiquan [intel.com] - 16 November 2016 00:15 UTC

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.

b663753 EGL/android: pbuffer implementation
src/egl/drivers/dri2/egl_dri2.h | 3 +-
src/egl/drivers/dri2/platform_android.c | 98 ++++++++++++++++++++++++-------
2 files changed, 78 insertions(+), 23 deletions(-)

Upstream: cgit.freedesktop.org


  • Share