From: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v2 3/4] lib/igt_kms: Add HDR_OUTPUT_METADATA connector property
Date: Thu, 25 Jul 2019 12:55:28 -0400 [thread overview]
Message-ID: <20190725165529.25775-3-nicholas.kazlauskas@amd.com> (raw)
In-Reply-To: <20190725165529.25775-1-nicholas.kazlauskas@amd.com>
...and also reset it when resetting outputs since that can definitely
affect CRC output on other tests when not reset.
v2: rebase
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
---
lib/igt_kms.c | 5 +++++
lib/igt_kms.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 7949f774..99929fe7 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -414,6 +414,7 @@ const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = {
[IGT_CONNECTOR_CONTENT_PROTECTION] = "Content Protection",
[IGT_CONNECTOR_VRR_CAPABLE] = "vrr_capable",
[IGT_CONNECTOR_MAX_BPC] = "max bpc",
+ [IGT_CONNECTOR_HDR_OUTPUT_METADATA] = "HDR_OUTPUT_METADATA",
};
/*
@@ -1859,6 +1860,10 @@ static void igt_output_reset(igt_output_t *output)
if (igt_output_has_prop(output, IGT_CONNECTOR_BROADCAST_RGB))
igt_output_set_prop_value(output, IGT_CONNECTOR_BROADCAST_RGB,
BROADCAST_RGB_FULL);
+
+ if (igt_output_has_prop(output, IGT_CONNECTOR_HDR_OUTPUT_METADATA))
+ igt_output_set_prop_value(output,
+ IGT_CONNECTOR_HDR_OUTPUT_METADATA, 0);
}
/**
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index cfb810d3..5f070ae8 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -124,6 +124,7 @@ enum igt_atomic_connector_properties {
IGT_CONNECTOR_CONTENT_PROTECTION,
IGT_CONNECTOR_VRR_CAPABLE,
IGT_CONNECTOR_MAX_BPC,
+ IGT_CONNECTOR_HDR_OUTPUT_METADATA,
IGT_NUM_CONNECTOR_PROPS
};
--
2.17.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-07-25 16:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-25 16:55 [igt-dev] [PATCH i-g-t v2 1/4] headers: Bump drm uapi headers Nicholas Kazlauskas
2019-07-25 16:55 ` [igt-dev] [PATCH i-g-t v2 2/4] lib/igt_kms: Add max bpc connector property Nicholas Kazlauskas
2019-07-25 16:55 ` Nicholas Kazlauskas [this message]
2019-07-25 16:55 ` [igt-dev] [PATCH i-g-t v2 4/4] tests/amdgpu: Add HDR tests for amdgpu Nicholas Kazlauskas
2019-07-25 17:10 ` [igt-dev] ✗ GitLab.Pipeline: warning for series starting with [i-g-t,v2,1/4] headers: Bump drm uapi headers Patchwork
2019-07-25 17:26 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190725165529.25775-3-nicholas.kazlauskas@amd.com \
--to=nicholas.kazlauskas@amd.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox