Several tests create pbuffer surfaces, but they are asking for EGL
configuration that supports windows, instead of pbuffers.
Affected tests:
dEQP-EGL.functional.multicontext.*
dEQP-EGL.functional.sharing.gles2.multithread.*
Components: OpenGL
VK-GL-CTS issue: 1204
Change-Id: Ifcee406eb37cbf5fb16ffba851247772909992b6
const EGLint attribList[] =
{
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
- EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
+ EGL_SURFACE_TYPE, EGL_PBUFFER_BIT,
EGL_ALPHA_SIZE, 1,
EGL_NONE
};
const EGLint attribList[] =
{
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
- EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
+ EGL_SURFACE_TYPE, EGL_PBUFFER_BIT,
EGL_ALPHA_SIZE, 1,
EGL_NONE
};
return (c.get(EGL_RENDERABLE_TYPE) & EGL_OPENGL_ES2_BIT) == EGL_OPENGL_ES2_BIT;
}
+bool supportsPBuffer (const eglu::CandidateConfig& c)
+{
+ return (c.get(EGL_SURFACE_TYPE) & EGL_PBUFFER_BIT) == EGL_PBUFFER_BIT;
+}
+
eglw::EGLConfig getConfig (const eglw::Library& egl, eglw::EGLDisplay display)
{
eglu::FilterList filters;
filters << isES2Renderable;
+ filters << supportsPBuffer;
return eglu::chooseSingleConfig(egl, display, filters);
}