[igt-dev] [i-g-t V4 17/52] tests/kms_flip_event_leak: Add support for Bigjoiner

B, Jeevan jeevan.b at intel.com
Fri Sep 30 08:42:38 UTC 2022



> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> Bhanuprakash Modem
> Sent: Thursday, September 22, 2022 9:29 PM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [i-g-t V4 17/52] tests/kms_flip_event_leak: Add support for
> Bigjoiner
> 
> 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: Jeevan B <jeevan.b at intel.com>
> ---
>  tests/kms_flip_event_leak.c | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/kms_flip_event_leak.c b/tests/kms_flip_event_leak.c index
> 9815f1e2..d3ddec72 100644
> --- a/tests/kms_flip_event_leak.c
> +++ b/tests/kms_flip_event_leak.c
> @@ -48,10 +48,6 @@ static void test(data_t *data, enum pipe pipe,
> igt_output_t *output)
>  	struct igt_fb fb[2];
>  	int fd, ret;
> 
> -	igt_display_reset(&data->display);
> -	/* select the pipe we want to use */
> -	igt_output_set_pipe(output, pipe);
> -
>  	primary = igt_output_get_plane_type(output,
> DRM_PLANE_TYPE_PRIMARY);
>  	mode = igt_output_get_mode(output);
> 
> @@ -104,9 +100,14 @@ igt_main
>  		igt_display_require_output(&data.display);
>  	}
> 
> -
>  	igt_subtest_with_dynamic("basic") {
>  		for_each_pipe_with_valid_output(&data.display, pipe,
> output) {
> +			igt_display_reset(&data.display);
> +
> +			igt_output_set_pipe(output, pipe);
> +			if (!i915_pipe_output_combo_valid(&data.display))
> +				continue;
> +
>  			igt_dynamic_f("pipe-%s-%s",
> kmstest_pipe_name(pipe), igt_output_name(output)) {
>  				test(&data, pipe, output);
>  			}
> --
> 2.37.3



More information about the igt-dev mailing list