Index: frameworks/native/services/surfaceflinger/SurfaceFlinger.cpp =================================================================== --- frameworks.orig/native/services/surfaceflinger/SurfaceFlinger.cpp 2015-06-24 14:54:06.000000000 +1200 +++ frameworks/native/services/surfaceflinger/SurfaceFlinger.cpp 2015-06-24 15:24:21.000000000 +1200 @@ -266,6 +266,12 @@ EGLConfig* const configs = new EGLConfig[numConfigs]; eglChooseConfig(dpy, attrs, configs, numConfigs, &n); + // SGX EGL reports 0 for all visual IDs. We'll just have to assume + // that what we get is what we want... + // -- Daniel Beer , 24 Jun 2015 + if (attribute == EGL_NATIVE_VISUAL_ID) + wanted = 0; + if (n) { if (attribute != EGL_NONE) { for (int i=0 ; i