mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-26 07:58:20 -04:00
render: add WLR_RENDER_NO_EXPLICIT_SYNC env var
This can be handy to figure out if a bug is due to explicit sync.
This commit is contained in:
parent
738bbf01ee
commit
775817e278
2 changed files with 5 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ wlroots reads these environment variables
|
||||||
renderers: gles2, pixman, vulkan)
|
renderers: gles2, pixman, vulkan)
|
||||||
* *WLR_RENDER_DRM_DEVICE*: specifies the DRM node to use for
|
* *WLR_RENDER_DRM_DEVICE*: specifies the DRM node to use for
|
||||||
hardware-accelerated renderers.
|
hardware-accelerated renderers.
|
||||||
|
* *WLR_RENDER_NO_EXPLICIT_SYNC*: set to 1 to disable explicit synchronization
|
||||||
|
support in renderers.
|
||||||
* *WLR_EGL_NO_MODIFIERS*: set to 1 to disable format modifiers in EGL, this can
|
* *WLR_EGL_NO_MODIFIERS*: set to 1 to disable format modifiers in EGL, this can
|
||||||
be used to understand and work around driver bugs.
|
be used to understand and work around driver bugs.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -274,6 +274,9 @@ out:
|
||||||
if (own_drm_fd && drm_fd >= 0) {
|
if (own_drm_fd && drm_fd >= 0) {
|
||||||
close(drm_fd);
|
close(drm_fd);
|
||||||
}
|
}
|
||||||
|
if (renderer != NULL && env_parse_bool("WLR_RENDER_NO_EXPLICIT_SYNC")) {
|
||||||
|
renderer->features.timeline = false;
|
||||||
|
}
|
||||||
return renderer;
|
return renderer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue