mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 06:01:56 -07:00
renderer: drop requesting OUT_FENCE_PTR
This commit is contained in:
@@ -1530,9 +1530,6 @@ 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;
|
||||||
@@ -1556,18 +1553,13 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto explicitOptions = getExplicitSyncSettings();
|
||||||
if (!explicitOptions.explicitEnabled)
|
if (!explicitOptions.explicitEnabled)
|
||||||
return ok;
|
return ok;
|
||||||
|
|
||||||
if (inFD >= 0)
|
if (inFD >= 0)
|
||||||
close(inFD);
|
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());
|
Debug::log(TRACE, "Explicit: {} presented", explicitPresented.size());
|
||||||
auto sync = g_pHyprOpenGL->createEGLSync(-1);
|
auto sync = g_pHyprOpenGL->createEGLSync(-1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user