[Intel-gfx] [PATCH i-g-t 4/5] tests/kms_atomic_transition: Do not clear in-fences after atomic commit.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Thu Jul 6 07:11:46 UTC 2017


This is already done in igt_display_commit* functions.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 tests/kms_atomic_transition.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index a2470c0c3571..6e2b25da75db 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -367,14 +367,6 @@ static void configure_fencing(igt_display_t *display, enum pipe pipe)
 	}
 }
 
-static void clear_fencing(igt_display_t *display, enum pipe pipe)
-{
-	igt_plane_t *plane;
-
-	for_each_plane_on_pipe(display, pipe, plane)
-		igt_plane_set_fence_fd(plane, -1);
-}
-
 static void atomic_commit(igt_display_t *display, enum pipe pipe, unsigned int flags, void *data, bool fencing)
 {
 	if (fencing) {
@@ -383,9 +375,6 @@ static void atomic_commit(igt_display_t *display, enum pipe pipe, unsigned int f
 	}
 
 	igt_display_commit_atomic(display, flags, data);
-
-	if (fencing)
-		clear_fencing(display, pipe);
 }
 
 /*
-- 
2.11.0



More information about the Intel-gfx mailing list