WIP Introduce WLR_GBM_EXPLICIT_UPGRADE

When the `WLR_GBM_EXPLICIT_UPGRADE` flag is set to 1, the GBM allocator
will attempt to "upgrade" buffers allocated with implicit modifiers to
be managed with explicit modifiers.

This is useful to enable the conservative modifier fallback for the
Vulkan renderer on drivers/hardware that fully support implicit and
explicit modifiers, including being able to report the modifier of an
implicitly allocated BO.
This commit is contained in:
Kenny Levinsen 2025-11-25 15:20:14 +01:00
parent 811765ffa0
commit 5a786d96d0
4 changed files with 21 additions and 1 deletions

View file

@ -18,6 +18,9 @@ wlroots reads these environment variables
and Vulkan
* *WLR_EGL_NO_MODIFIERS*: set to 1 to disable format modifiers in EGL, this can
be used to understand and work around driver bugs.
* *WLR_GBM_EXPLICIT_UPGRADE*: set to 1 to attempt to "upgrade" buffers
allocated with implicit modifiers to explicit modifiers. May help when a
conservative modifier is required, but may not work with all drivers.
## DRM backend