https://bugs.freedesktop.org/show_bug.cgi?id=82455
--- Comment #27 from Michel Dänzer michel@daenzer.net --- (In reply to comment #26)
Some place in mesa code you are still useing 4096 .
Please be more specific. Do you still need the change you described in comment 17, or something else?
libEGL debug: attribute 0x3033 has an invalid value 0x8 libEGL debug: EGL user error 0x3004 (EGL_BAD_ATTRIBUTE) in eglChooseConfig
Looks like maybe your Mesa build picked up a non-Mesa EGL/eglext.h which doesn't pull in eglmesaext.h, so EGL_MESA_screen_surface isn't defined in src/egl/main/eglconfig.c .