aboutsummaryrefslogtreecommitdiff
path: root/render/egl.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-03-26 12:33:37 -0400
committerSimon Ser <contact@emersion.fr>2021-04-26 09:02:52 +0200
commit8a27050b4e7dbe87769ef5e8d578dc0c959bc3e5 (patch)
tree94772fc99b5ae2b1b822b3c602876904244d612d /render/egl.c
parentce30a221597bac44daa927e40ed5400c6e414522 (diff)
render/egl: fail on EGL_MESA_device_software
Diffstat (limited to 'render/egl.c')
-rw-r--r--render/egl.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/render/egl.c b/render/egl.c
index 5074e684..94f288f6 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -278,13 +278,10 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display) {
if (allow_software != NULL && strcmp(allow_software, "1") == 0) {
wlr_log(WLR_INFO, "Using software rendering");
} else {
- // Because of a Mesa bug, sometimes EGL_MESA_device_software is
- // advertised for hardware renderers. See:
- // https://gitlab.freedesktop.org/mesa/mesa/-/issues/4178
- // 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");
+ wlr_log(WLR_ERROR, "Software rendering detected, please use "
+ "the WLR_RENDERER_ALLOW_SOFTWARE environment variable "
+ "to proceed");
+ goto error;
}
}