[Intel-gfx] [PATCH 1/2] Revert "tests/kms_psr_sink_crc: Wait 2 vblanks before grabing the new crc."

Rodrigo Vivi rodrigo.vivi at intel.com
Mon Oct 13 12:39:07 CEST 2014


This reverts
     commit d190a1f9668680c7a429110c91f8faa27949b220.
     Author: Rodrigo Vivi <rodrigo.vivi at intel.com>
     Date:   Wed Sep 3 21:26:29 2014 -0400

     	     tests/kms_psr_sink_crc: Wait 2 vblanks before grabing the new crc.

Sink CRC is fixed on kernel to wait as many vblanks as needed. It was fixed by:
     commit ad9dc91b6e21266bfc6f466db4b95e10211f31ee
     Author: Rodrigo Vivi <rodrigo.vivi at gmail.com>
     Date:   Tue Sep 16 19:18:12 2014 -0400

         drm/i915: Fix Sink CRC

This this fix in place we don't need this extra 2 vblanks on test case itself.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 tests/kms_psr_sink_crc.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index ad7ab97..c22c16e 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -243,9 +243,6 @@ static void get_sink_crc(data_t *data, char *crc) {
 	int ret;
 	FILE *file;
 
-	igt_wait_for_vblank(data->drm_fd, 0);
-	igt_wait_for_vblank(data->drm_fd, 0);
-
 	file = igt_debugfs_fopen("i915_sink_crc_eDP1", "r");
 	igt_require(file);
 
@@ -417,7 +414,7 @@ static void run_test(data_t *data)
 		    c->connection != DRM_MODE_CONNECTED)
 			continue;
 
-		igt_output_set_pipe(output, 0);
+		igt_output_set_pipe(output, PIPE_ANY);
 		data->crtc_id = output->config.crtc->crtc_id;
 
 		mode = igt_output_get_mode(output);
-- 
1.9.3




More information about the Intel-gfx mailing list