[igt-dev] [PATCH i-g-t V2] tests/kms_content_protection: Enable Primary plane for CRTC.

Harry Wentland harry.wentland at amd.com
Mon Jun 28 13:46:43 UTC 2021


On 2021-06-28 9:21 a.m., Anson Jacob wrote:
> From: Bindu Ramamurthy <bindu.r at amd.com>
> 
> [Why]
> Atomic driver check fails for crtc, when there is no primary plane.
> 
> [How]
> Enable primary plane before committing the streams.
> 
> Signed-off-by: Bindu Ramamurthy <bindu.r at amd.com>
> Acked-by: Anson Jacob <Anson.Jacob at amd.com>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Cc: Rodrigo Siqueira <Rodrigo.Siqueira at amd.com>
> Cc: Harry Wentland <harry.wentland at amd.com>
> Cc: Mark Yacoub <markyacoub at chromium.org>

Reviewed-by: Harry Wentland <harry.wentland at amd.com>

Harry

> ---
>  tests/kms_content_protection.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
> index bab61817bcc1..04b9ab30334a 100644
> --- a/tests/kms_content_protection.c
> +++ b/tests/kms_content_protection.c
> @@ -180,10 +180,13 @@ static void modeset_with_fb(const enum pipe pipe, igt_output_t *output,
>  	igt_output_set_pipe(output, pipe);
>  
>  	primary = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
> -	igt_display_commit2(display, s);
>  	igt_plane_set_fb(primary, &data.red);
>  	igt_fb_set_size(&data.red, primary, mode.hdisplay, mode.vdisplay);
>  
> +	igt_display_commit2(display, s);
> +
> +	igt_plane_set_fb(primary, &data.green);
> +
>  	/* Wait for Flip completion before starting the HDCP authentication */
>  	commit_display_and_wait_for_flip(s);
>  }
> 



More information about the igt-dev mailing list