From: Chris Wilson Date: Thu, 31 Oct 2019 07:29:55 +0000 (+0000) Subject: egl: Mention if swrast is being forced X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=863872e1418ec94f840ffdb5d7b5e3aaac07d8de;p=mesa.git egl: Mention if swrast is being forced The system can be disabling HW acceleration unbeknown to the user, leading to a long debug session trying to work out which component is failing. A quick mention that it is the environment override would be very useful. v2: Use more generic "CPU renderer" and so try to avoid jargon. Reviewed-By: Tapani Pälli Reviewed-by: Emil Velikov Reviewed-by: Eric Engestrom Acked-by: Martin Peres --- diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 0d8919aa0e1..526de02e53b 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -92,6 +92,8 @@ _eglMatchDriver(_EGLDisplay *disp) /* set options */ disp->Options.ForceSoftware = env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false); + if (disp->Options.ForceSoftware) + _eglLog(_EGL_DEBUG, "Found 'LIBGL_ALWAYS_SOFTWARE' set, will use a CPU renderer"); best_drv = _eglMatchAndInitialize(disp); if (!best_drv && !disp->Options.ForceSoftware) {