[Intel-gfx] [PATCH i-g-t rfc 10/29] tests/kms_fbc_crc: Add support for dynamic number of planes

Robert Foss robert.foss at collabora.com
Wed Jan 11 20:41:45 UTC 2017


Add changes reflecting the new support for dynamic number of planes per pipe.

Signed-off-by: Robert Foss <robert.foss at collabora.com>
---
 tests/kms_fbc_crc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c
index 2a2c93f7..f2fd88a6 100644
--- a/tests/kms_fbc_crc.c
+++ b/tests/kms_fbc_crc.c
@@ -383,7 +383,7 @@ static bool prepare_test(data_t *data, enum test_mode test_mode)
 	igt_output_t *output = data->output;
 	igt_pipe_crc_t *pipe_crc;
 
-	data->primary = igt_output_get_plane(data->output, IGT_PLANE_PRIMARY);
+	data->primary = igt_output_get_plane_type(data->output, DRM_PLANE_TYPE_PRIMARY);
 
 	create_fbs(data, true, data->fb);
 
@@ -471,7 +471,7 @@ static void reset_display(data_t *data)
 
 	for_each_connected_output(display, data->output) {
 		if (data->output->valid > 0) {
-			data->primary =  igt_output_get_plane(data->output, IGT_PLANE_PRIMARY);
+			data->primary =  igt_output_get_plane_type(data->output, DRM_PLANE_TYPE_PRIMARY);
 			igt_plane_set_fb(data->primary, NULL);
 		}
 		igt_output_set_pipe(data->output, PIPE_ANY);
-- 
2.11.0



More information about the Intel-gfx mailing list