mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 06:08:03 +02:00
glamor_egl: add info message about context API
It is useful to know on what context we are running, and
we need to show it into xorg.log
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Konstantin <ria.freelander@gmail.com>
(cherry picked from commit c014f33b43)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1636>
This commit is contained in:
parent
98ac366741
commit
93abc39fcd
1 changed files with 8 additions and 0 deletions
|
|
@ -1000,6 +1000,10 @@ glamor_egl_try_big_gl_api(ScrnInfoPtr scrn)
|
||||||
eglDestroyContext(glamor_egl->display, glamor_egl->context);
|
eglDestroyContext(glamor_egl->display, glamor_egl->context);
|
||||||
glamor_egl->context = EGL_NO_CONTEXT;
|
glamor_egl->context = EGL_NO_CONTEXT;
|
||||||
}
|
}
|
||||||
|
xf86DrvMsg(scrn->scrnIndex, X_INFO,
|
||||||
|
"glamor: Using OpenGL %d.%d context.\n",
|
||||||
|
epoxy_gl_version() / 10,
|
||||||
|
epoxy_gl_version() % 10);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
@ -1031,6 +1035,10 @@ glamor_egl_try_gles_api(ScrnInfoPtr scrn)
|
||||||
"Failed to make GLES context current\n");
|
"Failed to make GLES context current\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
xf86DrvMsg(scrn->scrnIndex, X_INFO,
|
||||||
|
"glamor: Using OpenGL ES %d.%d context.\n",
|
||||||
|
epoxy_gl_version() / 10,
|
||||||
|
epoxy_gl_version() % 10);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue