[Intel-gfx] [PATCH i-g-t 30/43] kms_rotation_crc: Remove the test on output->valid

Damien Lespiau damien.lespiau at intel.com
Thu Jul 10 20:00:31 CEST 2014


This test is already done by the for_each_connected_output() macro.

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 tests/kms_rotation_crc.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index ae0ca21..a68aece 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -83,15 +83,11 @@ static bool prepare_crtc(data_t *data, enum pipe pipe)
 {
 	drmModeModeInfo *mode;
 	igt_display_t *display = &data->display;
-	igt_output_t *output = data->output;
 	int fb_id;
 
 	igt_output_set_pipe(output, pipe);
 	igt_display_commit(display);
 
-	if (!data->output->valid)
-		return false;
-
 	/* create the pipe_crc object for this pipe */
 	if (data->pipe_crc)
 		igt_pipe_crc_free(data->pipe_crc);
-- 
1.8.3.1




More information about the Intel-gfx mailing list