diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-06-28 11:49:25 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-09-03 13:52:05 +0100 |
commit | 59be4a681029b73e63ce591c159af50333193366 (patch) | |
tree | d1e6119fa2f7eb95d3e7b5e837664681f3b92030 | |
parent | 963048ef891b3f1f35f809202f6343ad20c70452 (diff) |
igt/kms_universal_plane: Flush pending cleanups
drm_atomic_helper allows for up to one outstanding cleanup task to be in
flight before a new modeset (see stall_commit in stall_checks()), In
lieu of hooking up a debugfs to force flushing of the outstanding work,
submit enough blocking modesets to ensure that the pending work is
completed before continuing.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
-rw-r--r-- | tests/kms_universal_plane.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c index 46d6d180..3b164bda 100644 --- a/tests/kms_universal_plane.c +++ b/tests/kms_universal_plane.c @@ -639,6 +639,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) igt_plane_set_fb(primary, NULL); igt_plane_set_fb(cursor, NULL); igt_display_commit2(display, COMMIT_LEGACY); + igt_display_commit2(display, COMMIT_LEGACY); cursor_leak_test_fini(data, output, &background_fb, cursor_fb); /* We should be back to the same framebuffer count as when we started */ |