Created attachment 321052 [details, diff] upstream patch to check for EGL_KHR_surfaceless_context Upstream Mesa removed the EGL_KHR_surfaceless_{gles1,gles2,opengl} extensions (which weren't actually KHR approved) and implemented EGL_KHR_surfaceless_context. Cairo looked for EGL_KHR_surfaceless_opengl, which won't work with newer Mesa. See http://cgit.freedesktop.org/mesa/mesa/commit/?id=b50703aea55450e04bcd8154335774786e0f253b http://cgit.freedesktop.org/cairo/commit/?id=f59b0914f4ddbff0d116c918343a6726d5f4317b Please apply to all versions of cairo.
So. Want to commit it?
Yes, this seems fairly unintrusive. Should be good to go.
Fixed in cairo-1.12.2-r4.