mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 02:35:59 +01:00
drm: don't use explicit in blit without explicit requested from user
This commit is contained in:
parent
8a8afd3896
commit
21f9c44789
1 changed files with 2 additions and 1 deletions
|
@ -1483,8 +1483,9 @@ 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 the commit doesn't have an explicit fence, don't use the one we created, just fallback to implicit
|
||||||
static auto NO_EXPLICIT = envEnabled("AQ_MGPU_NO_EXPLICIT");
|
static auto NO_EXPLICIT = envEnabled("AQ_MGPU_NO_EXPLICIT");
|
||||||
if (blitResult.syncFD.has_value() && !NO_EXPLICIT)
|
if (blitResult.syncFD.has_value() && !NO_EXPLICIT && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_EXPLICIT_IN_FENCE))
|
||||||
state->setExplicitInFence(blitResult.syncFD.value());
|
state->setExplicitInFence(blitResult.syncFD.value());
|
||||||
else
|
else
|
||||||
state->setExplicitInFence(-1);
|
state->setExplicitInFence(-1);
|
||||||
|
|
Loading…
Reference in a new issue