mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
egl_dri2: Downgrade initialization errors to warnings
Don't want to shutdown everything if egl_dri2 fails to initialize.
This commit is contained in:
parent
f19b202556
commit
7413d9ae9f
1 changed files with 4 additions and 4 deletions
|
|
@ -690,7 +690,7 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp,
|
|||
}
|
||||
|
||||
if (dri2_dpy->driver == NULL) {
|
||||
_eglLog(_EGL_FATAL,
|
||||
_eglLog(_EGL_WARNING,
|
||||
"DRI2: failed to open any driver (search paths %s)",
|
||||
search_paths);
|
||||
goto cleanup_conn;
|
||||
|
|
@ -699,7 +699,7 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp,
|
|||
_eglLog(_EGL_DEBUG, "DRI2: dlopen(%s)", path);
|
||||
extensions = dlsym(dri2_dpy->driver, __DRI_DRIVER_EXTENSIONS);
|
||||
if (extensions == NULL) {
|
||||
_eglLog(_EGL_FATAL,
|
||||
_eglLog(_EGL_WARNING,
|
||||
"DRI2: driver exports no extensions (%s)", dlerror());
|
||||
goto cleanup_driver;
|
||||
}
|
||||
|
|
@ -709,7 +709,7 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp,
|
|||
|
||||
dri2_dpy->fd = open(dri2_dpy->device_name, O_RDWR);
|
||||
if (dri2_dpy->fd == -1) {
|
||||
_eglLog(_EGL_FATAL,
|
||||
_eglLog(_EGL_WARNING,
|
||||
"DRI2: could not open %s (%s)", dri2_dpy->device_name,
|
||||
strerror(errno));
|
||||
goto cleanup_driver;
|
||||
|
|
@ -748,7 +748,7 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp,
|
|||
&dri2_dpy->driver_configs, dri2_dpy);
|
||||
|
||||
if (dri2_dpy->dri_screen == NULL) {
|
||||
_eglLog(_EGL_FATAL, "DRI2: failed to create dri screen");
|
||||
_eglLog(_EGL_WARNING, "DRI2: failed to create dri screen");
|
||||
goto cleanup_fd;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue