[PATCH i-g-t 3/4] tests/kms_content_protection: Enable HDCP for unigraf if available
Louis Chauvet <[email protected]> Fri, 31 Jul 2026 20:21:56 +0200
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <[email protected]> |
As unigraf can be automatically connected and can emulate HDCP 2.2 sink, enable it. Signed-off-by: Louis Chauvet <[email protected]> --- tests/kms_content_protection.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c index 133060af3c0a..680204981f58 100644 --- a/tests/kms_content_protection.c +++ b/tests/kms_content_protection.c @@ -42,6 +42,9 @@ #include "igt_kmod.h" #include "igt_panel.h" +#ifdef HAVE_UNIGRAF +#include "unigraf/unigraf.h" +#endif /** * SUBTEST: lic-type-0 * Description: Test for the integrity of link for type-0 content. @@ -769,6 +772,11 @@ test_content_protection(enum igt_commit_style commit_style, int content_type) int hdcp_panel_count; int i; +#ifdef HAVE_UNIGRAF + if (content_type == HDCP_CONTENT_TYPE_1 && unigraf_open_device(data.drm_fd)) + unigraf_enable_hdcp(); +#endif + if (data.cp_tests & CP_MEI_RELOAD) igt_require_f(igt_kmod_is_loaded("mei_hdcp"), "mei_hdcp module is not loaded\n"); -- 2.54.0