Mesa change breaks Waffle
Created by: gurchetansingh
I am running the following version of Waffle with ChromeOS:
https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/master/media-libs/waffle
With this recent Mesa change, the following wflinfo command returns an error:
localhost ~ # wflinfo -p null -a gles2
Waffle error: 0x2 WAFFLE_ERROR_UNKNOWN: eglChooseConfig found no matching configs
The error can be traced back to this line:
const EGLint surface_type = EGL_PBUFFER_BIT;
The command works fine if we change that line to:
const EGLint surface_type = EGL_PBUFFER_BIT | EGL_WINDOW_BIT;
However, since there are no windows with the surfaceless platform, the first method is correct. Before that change, Mesa used to advertise the the window bit only. I am not sure if this error is specific to ChromeOS's version of Waffle, though.