Mesa (master): egl: Mention if swrast is being forced

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 11 11:52:26 UTC 2019


Module: Mesa
Branch: master
Commit: 863872e1418ec94f840ffdb5d7b5e3aaac07d8de
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=863872e1418ec94f840ffdb5d7b5e3aaac07d8de

Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Oct 31 07:29:55 2019 +0000

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 <tapani.palli at intel.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
Acked-by: Martin Peres <martin.peres at linux.intel.com>

---

 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) {




More information about the mesa-commit mailing list