|
|
@ -279,10 +279,13 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display) {
|
|
|
|
if (allow_software != NULL && strcmp(allow_software, "1") == 0) {
|
|
|
|
if (allow_software != NULL && strcmp(allow_software, "1") == 0) {
|
|
|
|
wlr_log(WLR_INFO, "Using software rendering");
|
|
|
|
wlr_log(WLR_INFO, "Using software rendering");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
wlr_log(WLR_ERROR, "Software rendering detected, please use "
|
|
|
|
// Because of a Mesa bug, sometimes EGL_MESA_device_software is
|
|
|
|
"the WLR_RENDERER_ALLOW_SOFTWARE environment variable "
|
|
|
|
// advertised for hardware renderers. See:
|
|
|
|
"to proceed");
|
|
|
|
// https://gitlab.freedesktop.org/mesa/mesa/-/issues/4178
|
|
|
|
goto error;
|
|
|
|
// TODO: fail without WLR_RENDERER_ALLOW_SOFTWARE
|
|
|
|
|
|
|
|
wlr_log(WLR_INFO, "Warning: software rendering may be in use");
|
|
|
|
|
|
|
|
wlr_log(WLR_INFO, "If you experience slow rendering, "
|
|
|
|
|
|
|
|
"please check the OpenGL drivers are correctly installed");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -298,7 +301,7 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!check_egl_ext(display_exts_str, "EGL_KHR_surfaceless_context")) {
|
|
|
|
if (!check_egl_ext(display_exts_str, "EGL_KHR_surfaceless_context")) {
|
|
|
|
wlr_log(WLR_ERROR,
|
|
|
|
wlr_log(WLR_ERROR,
|
|
|
|
"EGL_KHR_surfaceless_context not supported");
|
|
|
|
"EGL_KHR_surfaceless_context not supported");
|
|
|
|
goto error;
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|