aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-09-03 14:47:34 +0200
committervaxerski <[email protected]>2024-09-03 14:47:34 +0200
commit9b54342baa27d8de0460e1103ec4c3cc65592ed8 (patch)
treeebfd97caa7f0adfdb95d458abab2c094b51dc39e
parent8f9887b0c9443d6c2559feeec411daecb9780a97 (diff)
downloadHyprland-9b54342baa27d8de0460e1103ec4c3cc65592ed8.tar.gz
Hyprland-9b54342baa27d8de0460e1103ec4c3cc65592ed8.zip
Revert "syncobj: wait for deadline instead of available"
This reverts commit cf6a1716ae719f9c59b1d175ca84a79015fab8e1. Fixes #7628
-rw-r--r--src/protocols/DRMSyncobj.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocols/DRMSyncobj.cpp b/src/protocols/DRMSyncobj.cpp
index e0c90a3b..4993f1a4 100644
--- a/src/protocols/DRMSyncobj.cpp
+++ b/src/protocols/DRMSyncobj.cpp
@@ -58,8 +58,8 @@ CDRMSyncobjSurfaceResource::CDRMSyncobjSurfaceResource(SP<CWpLinuxDrmSyncobjSurf
if (!pending.acquireTimeline)
return;
- // wait for the buffer to be released by the gpu before sending a commit to avoid lagging the desktop
- auto materialized = pending.acquireTimeline->timeline->check(pending.acquirePoint, DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE);
+ // wait for the acquire timeline to materialize
+ auto materialized = pending.acquireTimeline->timeline->check(pending.acquirePoint, DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE);
if (!materialized.has_value()) {
LOGM(ERR, "Failed to check the acquire timeline");
resource->noMemory();
@@ -70,7 +70,7 @@ CDRMSyncobjSurfaceResource::CDRMSyncobjSurfaceResource(SP<CWpLinuxDrmSyncobjSurf
return;
surface->lockPendingState();
- pending.acquireTimeline->timeline->addWaiter([this]() { surface->unlockPendingState(); }, pending.acquirePoint, DRM_SYNCOBJ_WAIT_FLAGS_WAIT_DEADLINE);
+ pending.acquireTimeline->timeline->addWaiter([this]() { surface->unlockPendingState(); }, pending.acquirePoint, DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE);
});
listeners.surfaceCommit = surface->events.roleCommit.registerListener([this](std::any d) {