drm/atomic-helper: Set fence deadline for vblank
authorRob Clark <robdclark@chromium.org>
Fri, 3 Sep 2021 18:47:54 +0000 (11:47 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 28 Mar 2023 21:52:59 +0000 (14:52 -0700)
commitd39e48ca80c0960b039cb38633957f0040f63e1a
tree04bd3f16b558ce93a96e8ce8b59e544b2c50850c
parentb2c077d001b612b1f34f7e528b2dc6072bd6794e
drm/atomic-helper: Set fence deadline for vblank

For an atomic commit updating a single CRTC (ie. a pageflip) calculate
the next vblank time, and inform the fence(s) of that deadline.

v2: Comment typo fix (danvet)
v3: If there are multiple CRTCs, consider the time of the soonest vblank

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c