From 863872e1418ec94f840ffdb5d7b5e3aaac07d8de Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 31 Oct 2019 07:29:55 +0000 Subject: [PATCH] egl: Mention if swrast is being forced MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/egl/main/egldriver.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.30.2