egl: Mention if swrast is being forced
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 Oct 2019 07:29:55 +0000 (07:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Nov 2019 11:52:02 +0000 (11:52 +0000)
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@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Martin Peres <martin.peres@linux.intel.com>
src/egl/main/egldriver.c

index 0d8919aa0e1cce345a6780db81de2e974ae2b05e..526de02e53b66dc26eff6400533ad1c84008ac8a 100644 (file)
@@ -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) {