drm: enable explit out fence in AQ (#8431)

This commit is contained in:
UjinT34 2024-11-15 03:45:13 +03:00 committed by GitHub
parent 940ed3d525
commit 967fe76a60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;