[igt-dev] [i-g-t 26/51] tests/kms_plane_multiple: Add support for Bigjoiner
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Sun Aug 14 18:08:43 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.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_plane_multiple.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c
index 1679f7ce..c59fd4df 100644
--- a/tests/kms_plane_multiple.c
+++ b/tests/kms_plane_multiple.c
@@ -296,6 +296,9 @@ test_plane_position_with_output(data_t *data, enum pipe pipe,
bool loop_forever;
char info[256];
+ igt_info("Using (pipe %s + %s) to run the subtest.\n",
+ kmstest_pipe_name(pipe), igt_output_name(output));
+
if (opt.iterations == LOOP_FOREVER) {
loop_forever = true;
sprintf(info, "forever");
@@ -366,12 +369,18 @@ static void
test_plane_position(data_t *data, enum pipe pipe, uint64_t modifier)
{
igt_output_t *output;
+ igt_display_t *display = &data->display;
int n_planes = opt.all_planes ?
data->display.pipes[pipe].n_planes : DEFAULT_N_PLANES;
- output = igt_get_single_output_for_pipe(&data->display, pipe);
+ output = igt_get_single_output_for_pipe(display, pipe);
igt_require(output);
+ igt_display_reset(display);
+
+ igt_output_set_pipe(output, pipe);
+ igt_require(igt_test_constraint(display));
+
if (!opt.user_seed)
opt.seed = time(NULL);
--
2.35.1
More information about the igt-dev
mailing list