From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2058.outbound.protection.outlook.com [40.107.94.58]) by gabe.freedesktop.org (Postfix) with ESMTPS id 306726EA25 for ; Fri, 18 Jun 2021 14:29:10 +0000 (UTC) From: Anson Jacob Date: Fri, 18 Jun 2021 10:28:53 -0400 Message-ID: <20210618142855.5750-3-Anson.Jacob@amd.com> In-Reply-To: <20210618142855.5750-1-Anson.Jacob@amd.com> References: <20210618142855.5750-1-Anson.Jacob@amd.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t 2/4] tests/kms_content_protection: Enable Primary plane for CRTC. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Petri Latvala , Anson Jacob , Bindu Ramamurthy , Mark Yacoub List-ID: From: Bindu Ramamurthy [Why] Atomic driver check fails for crtc in the upstream,when there is no primary plane. [How] Enabling the primary plane before committing the streams. Signed-off-by: Bindu Ramamurthy Acked-by: Anson Jacob Cc: Petri Latvala Cc: Rodrigo Siqueira Cc: Harry Wentland Cc: Mark Yacoub --- 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 a0a136da6e8d..e39db805b7c0 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); } -- 2.25.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev