mirror of https://github.com/mpv-player/mpv
vo_gpu: x11egl: log EGL config ID
Somewhat useful for debugging.
This commit is contained in:
parent
8e08a2ec97
commit
2c6d42e704
|
@ -117,12 +117,16 @@ static bool mpegl_init(struct ra_ctx *ctx)
|
||||||
if (!mpegl_create_context_cb(ctx, p->egl_display, cb, &p->egl_context, &config))
|
if (!mpegl_create_context_cb(ctx, p->egl_display, cb, &p->egl_context, &config))
|
||||||
goto uninit;
|
goto uninit;
|
||||||
|
|
||||||
int vID, n;
|
int cid, vID, n;
|
||||||
|
if (!eglGetConfigAttrib(p->egl_display, config, EGL_CONFIG_ID, &cid)) {
|
||||||
|
MP_FATAL(ctx, "Getting EGL_CONFIG_ID failed!\n");
|
||||||
|
goto uninit;
|
||||||
|
}
|
||||||
if (!eglGetConfigAttrib(p->egl_display, config, EGL_NATIVE_VISUAL_ID, &vID)) {
|
if (!eglGetConfigAttrib(p->egl_display, config, EGL_NATIVE_VISUAL_ID, &vID)) {
|
||||||
MP_FATAL(ctx, "Getting X visual ID failed!\n");
|
MP_FATAL(ctx, "Getting X visual ID failed!\n");
|
||||||
goto uninit;
|
goto uninit;
|
||||||
}
|
}
|
||||||
MP_VERBOSE(ctx, "chose visual 0x%x\n", vID);
|
MP_VERBOSE(ctx, "Choosing visual EGL config 0x%x, visual ID 0x%x\n", cid, vID);
|
||||||
XVisualInfo template = {.visualid = vID};
|
XVisualInfo template = {.visualid = vID};
|
||||||
XVisualInfo *vi = XGetVisualInfo(vo->x11->display, VisualIDMask, &template, &n);
|
XVisualInfo *vi = XGetVisualInfo(vo->x11->display, VisualIDMask, &template, &n);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue