mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render: add WLR_RENDERER_FORCE_SOFTWARE env var
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3693
This commit is contained in:
parent
24232e8e98
commit
cfcf06b8b0
2 changed files with 8 additions and 0 deletions
|
|
@ -143,6 +143,12 @@ static bool open_preferred_drm_fd(struct wlr_backend *backend, int *drm_fd_ptr,
|
|||
return true;
|
||||
}
|
||||
|
||||
if (env_parse_bool("WLR_RENDERER_FORCE_SOFTWARE")) {
|
||||
*drm_fd_ptr = -1;
|
||||
*own_drm_fd = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Allow the user to override the render node
|
||||
const char *render_name = getenv("WLR_RENDER_DRM_DEVICE");
|
||||
if (render_name != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue