drm: add AQ_MGPU_NO_EXPLICIT

This commit is contained in:
Vaxry 2024-08-05 16:42:03 +02:00
parent 6f5adc0568
commit 8a8afd3896
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,7 @@ Unless specified otherwise, a variable is enabled if and only if it's set to `1`
### DRM ### DRM
`AQ_NO_ATOMIC` -> Disables drm atomic modesetting `AQ_NO_ATOMIC` -> Disables drm atomic modesetting
`AQ_MGPU_NO_EXPLICIT` -> Disables explicit syncing on mgpu buffers
### Debugging ### Debugging

View file

@ -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. // 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()); state->setExplicitInFence(blitResult.syncFD.value());
else else
state->setExplicitInFence(-1); state->setExplicitInFence(-1);