mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 10:45:58 +01:00
drm: enable explit out fence in AQ (#8431)
This commit is contained in:
parent
940ed3d525
commit
967fe76a60
1 changed files with 3 additions and 2 deletions
|
@ -1507,6 +1507,9 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
|
||||||
pMonitor->output->state->resetExplicitFences();
|
pMonitor->output->state->resetExplicitFences();
|
||||||
if (inFD >= 0)
|
if (inFD >= 0)
|
||||||
pMonitor->output->state->setExplicitInFence(inFD);
|
pMonitor->output->state->setExplicitInFence(inFD);
|
||||||
|
auto explicitOptions = getExplicitSyncSettings();
|
||||||
|
if (explicitOptions.explicitEnabled && explicitOptions.explicitKMSEnabled)
|
||||||
|
pMonitor->output->state->enableExplicitOutFenceForNextCommit();
|
||||||
|
|
||||||
if (pMonitor->ctmUpdated) {
|
if (pMonitor->ctmUpdated) {
|
||||||
pMonitor->ctmUpdated = false;
|
pMonitor->ctmUpdated = false;
|
||||||
|
@ -1530,8 +1533,6 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto explicitOptions = getExplicitSyncSettings();
|
|
||||||
|
|
||||||
if (!explicitOptions.explicitEnabled)
|
if (!explicitOptions.explicitEnabled)
|
||||||
return ok;
|
return ok;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue