mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 03:46:00 +01:00
drm: add AQ_MGPU_NO_EXPLICIT
This commit is contained in:
parent
6f5adc0568
commit
8a8afd3896
2 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,7 @@ Unless specified otherwise, a variable is enabled if and only if it's set to `1`
|
|||
### DRM
|
||||
|
||||
`AQ_NO_ATOMIC` -> Disables drm atomic modesetting
|
||||
`AQ_MGPU_NO_EXPLICIT` -> Disables explicit syncing on mgpu buffers
|
||||
|
||||
### Debugging
|
||||
|
||||
|
|
|
@ -1483,7 +1483,8 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
|
|||
}
|
||||
|
||||
// replace the explicit in fence if the blitting backend returned one, otherwise discard old. Passed fence from the client is wrong.
|
||||
if (blitResult.syncFD.has_value())
|
||||
static auto NO_EXPLICIT = envEnabled("AQ_MGPU_NO_EXPLICIT");
|
||||
if (blitResult.syncFD.has_value() && !NO_EXPLICIT)
|
||||
state->setExplicitInFence(blitResult.syncFD.value());
|
||||
else
|
||||
state->setExplicitInFence(-1);
|
||||
|
|
Loading…
Reference in a new issue