render: introduce WLR_RENDER_DRM_DEVICE

This env var allows to override the DRM node used by the GLES2 and
Vulkan renderers. It's especially useful to select a DRM node when
running with the headless backend.

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/2656
This commit is contained in:
Simon Ser 2021-11-24 10:52:39 +01:00 committed by Simon Zeni
parent f29abe4c77
commit 2e33139ef7
2 changed files with 28 additions and 3 deletions

View file

@ -10,6 +10,8 @@ wlroots reads these environment variables
of following shell search semantics for "Xwayland")
* *WLR_RENDERER*: forces the creation of a specified renderer (available
renderers: gles2, pixman, vulkan)
* *WLR_RENDER_DRM_DEVICE*: specifies the DRM node to use for
hardware-accelerated renderers.
## DRM backend