[Intel-gfx] [PATCH i-g-t 2/2] tests/kms_rmfb: Use for_each_pipe_with_valid_output.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon Jun 13 13:47:55 UTC 2016


Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 tests/kms_rmfb.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/tests/kms_rmfb.c b/tests/kms_rmfb.c
index a3fde9f43788..89aa323210dd 100644
--- a/tests/kms_rmfb.c
+++ b/tests/kms_rmfb.c
@@ -144,12 +144,9 @@ run_rmfb_test(struct rmfb_data *data, bool reopen)
 	int valid_tests = 0;
 	enum pipe pipe;
 
-	for_each_connected_output(&data->display, output) {
-		for_each_pipe(&data->display, pipe) {
-			if (test_rmfb(data, output, pipe, reopen))
-				valid_tests++;
-		}
-	}
+	for_each_pipe_with_valid_output(&data->display, pipe, output)
+		if (test_rmfb(data, output, pipe, reopen))
+			valid_tests++;
 
 	igt_require_f(valid_tests, "no valid crtc/connector combinations found\n");
 }
-- 
2.5.5



More information about the Intel-gfx mailing list