[igt-dev] [i-g-t V4 42/52] tests/i915/kms_draw_crc: Add support for Bigjoiner
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Thu Sep 22 15:59:54 UTC 2022
This patch will add a check to Skip the subtest if a selected pipe/output
combo won't support Bigjoiner or 8K mode.
Example:
* Pipe-D wont support a mode > 5K
* To use 8K mode on a pipe then consecutive pipe must be available & free.
V2: - Use updated helper name
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
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.37.3
More information about the igt-dev
mailing list