Skip to content

Commit

Permalink
drm-syncobj: Fix check for acquire/release point order
Browse files Browse the repository at this point in the history
This check was backwards, but that wasn't apparent since not all
implementations use the same timeline for both.
  • Loading branch information
ids1024 committed Oct 2, 2024
1 parent b6bb20e commit 59ed761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wayland/drm_syncobj/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ fn commit_hook<D: DrmSyncobjHandler>(_data: &mut D, _dh: &DisplayHandle, surface
} else if let (Some(acquire), Some(release)) =
(pending.acquire_point.as_ref(), pending.release_point.as_ref())
{
if acquire.timeline == release.timeline && acquire.point <= release.point {
if acquire.timeline == release.timeline && release.point <= acquire.point {
syncobj_surface.post_error(
wp_linux_drm_syncobj_surface_v1::Error::ConflictingPoints as u32,
format!(
"release point '{}' is not greater than acquire point '{}'",
"release point {} is not greater than acquire point {}",
release.point, acquire.point
),
);
Expand Down

0 comments on commit 59ed761

Please sign in to comment.