[igt-dev] [i-g-t v8 41/51] tests/i915/kms_draw_crc: Add support for Bigjoiner
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Thu Feb 23 15:10:08 UTC 2023
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>
Reviewed-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
tests/i915/kms_draw_crc.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/tests/i915/kms_draw_crc.c b/tests/i915/kms_draw_crc.c
index 701de8ecb..3a3cd99a0 100644
--- a/tests/i915/kms_draw_crc.c
+++ b/tests/i915/kms_draw_crc.c
@@ -59,16 +59,14 @@ 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, IGT_PIPE_CRC_SOURCE_AUTO);
/*Only one pipe/output is enough*/
break;
--
2.39.1
More information about the igt-dev
mailing list