[igt-dev] [i-g-t V3 42/52] tests/i915/kms_draw_crc: Add support for Bigjoiner

Bhanuprakash Modem
2022-09-09T14:07:07Z

tests/i915/kms_draw_crc.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/tests/i915/kms_draw_crc.c b/tests/i915/kms_draw_crc.c
index b99f348d..09ec190d 100644
--- a/tests/i915/kms_draw_crc.c
+++ b/tests/i915/kms_draw_crc.c
@@ -59,17 +59,16 @@ static void find_modeset_params(void)
{
enum pipe pipe;

- igt_display_reset(&display);
- igt_display_commit(&display);
-
for_each_pipe_with_valid_output(&display, pipe, output) {
- igt_output_set_pipe(output, pipe);
+ igt_display_reset(&display);

- mode = igt_output_get_mode(output);
- if (!mode)
+ igt_output_set_pipe(output, pipe);
+ if (!i915_pipe_output_combo_valid(&display))
continue;

+ mode = igt_output_get_mode(output);
pipe_crc = igt_pipe_crc_new(drm_fd, pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
+
/*Only one pipe/output is enough*/
break;
}
--
2.35.1