[igt-dev] [i-g-t v7 51/51] tests/i915/kms_pwrite_crc: Add support for Bigjoiner

Bhanuprakash Modem
2023-01-04T17:08:43Z

V3: - Fix the usage of pipe & output

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Mohammed Thasleem <mohammed.thasleem@intel.com>
---
tests/i915/kms_pwrite_crc.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tests/i915/kms_pwrite_crc.c b/tests/i915/kms_pwrite_crc.c
index c84a184d..3278d876 100644
--- a/tests/i915/kms_pwrite_crc.c
+++ b/tests/i915/kms_pwrite_crc.c
@@ -110,6 +110,7 @@ static void prepare_crtc(data_t *data)
igt_output_t *output = data->output;
drmModeModeInfo *mode;

+ igt_display_reset(display);
/* select the pipe we want to use */
igt_output_set_pipe(output, data->pipe);

@@ -156,12 +157,13 @@ static void cleanup_crtc(data_t *data)
static void run_test(data_t *data)
{
igt_display_t *display = &data->display;
- igt_output_t *output;
- enum pipe pipe;

- for_each_pipe_with_valid_output(display, pipe, output) {
- data->output = output;
- data->pipe = pipe;
+ for_each_pipe_with_valid_output(display, data->pipe, data->output) {
+ igt_display_reset(display);
+
+ igt_output_set_pipe(data->output, data->pipe);
+ if (!i915_pipe_output_combo_valid(display))
+ continue;

prepare_crtc(data);
test(data);
--
2.39.0