diff options
author | Chris Wilson <[email protected]> | 2019-10-31 07:29:55 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2019-11-11 11:52:02 +0000 |
commit | 863872e1418ec94f840ffdb5d7b5e3aaac07d8de (patch) | |
tree | 909a02cebde1b0361b6b738c0d9d229f848dee08 /src/egl | |
parent | 9e440b8d0b982933650c7b600de1e4b6e33f9c7d (diff) |
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 <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Acked-by: Martin Peres <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/main/egldriver.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |