mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-23 07:32:42 +03:00
renderer: drop requesting OUT_FENCE_PTR
This commit is contained in:
parent
10a4365f7d
commit
cccca7c02e
@ -1530,9 +1530,6 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
|
||||
pMonitor->output->state->resetExplicitFences();
|
||||
if (inFD >= 0)
|
||||
pMonitor->output->state->setExplicitInFence(inFD);
|
||||
auto explicitOptions = getExplicitSyncSettings();
|
||||
if (explicitOptions.explicitEnabled && explicitOptions.explicitKMSEnabled)
|
||||
pMonitor->output->state->enableExplicitOutFenceForNextCommit();
|
||||
|
||||
if (pMonitor->ctmUpdated) {
|
||||
pMonitor->ctmUpdated = false;
|
||||
@ -1556,18 +1553,13 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
|
||||
}
|
||||
}
|
||||
|
||||
auto explicitOptions = getExplicitSyncSettings();
|
||||
if (!explicitOptions.explicitEnabled)
|
||||
return ok;
|
||||
|
||||
if (inFD >= 0)
|
||||
close(inFD);
|
||||
|
||||
if (pMonitor->output->state->state().explicitOutFence >= 0) {
|
||||
Debug::log(TRACE, "Aquamarine returned an explicit out fence at {}", pMonitor->output->state->state().explicitOutFence);
|
||||
close(pMonitor->output->state->state().explicitOutFence);
|
||||
} else
|
||||
Debug::log(TRACE, "Aquamarine did not return an explicit out fence");
|
||||
|
||||
Debug::log(TRACE, "Explicit: {} presented", explicitPresented.size());
|
||||
auto sync = g_pHyprOpenGL->createEGLSync(-1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user