Thread (4 messages) 4 messages, 3 authors, 2021-06-28

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

From: Anson Jacob <hidden>
Date: 2021-06-28 13:21:13
Subsystem: the rest · Maintainer: Linus Torvalds

From: Bindu Ramamurthy <redacted>

[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 <redacted>
Acked-by: Anson Jacob <redacted>
Cc: Petri Latvala <redacted>
Cc: Rodrigo Siqueira <redacted>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Mark Yacoub <redacted>
---
 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);
 }
-- 
2.25.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help