diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/guest-diag/gz_es.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/guest-diag/gz_es.c b/tools/guest-diag/gz_es.c index 5a56fee..9c8decd 100644 --- a/tools/guest-diag/gz_es.c +++ b/tools/guest-diag/gz_es.c @@ -245,8 +245,21 @@ static int create_context(void) return -1; } } else if (!eglMakeCurrent(dpy, surf, surf, ctx)) { - gzlog("[gzes] current(surf) 0x%x\n", eglGetError()); - return -1; + /* + * c1030 regression: a displayless vGPU can create the + * pbuffer surface but cannot bind it (EGL_BAD_ALLOC + * 0x3003). c1021 ran surfaceless; fall back to that + * path instead of failing the whole EGL bring-up. + */ + gzlog("[gzes] current(surf) 0x%x -> surfaceless fallback\n", + eglGetError()); + eglDestroySurface(dpy, surf); + surf = EGL_NO_SURFACE; + if (!eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, + ctx)) { + gzlog("[gzes] current 0x%x\n", eglGetError()); + return -1; + } } shm_open_frame(); gzlog("[gzes] OK api=%s renderer=%s version=%s surf=%d desktop=%d\n", |
