From: Melissa Wen <mwen@igalia.com>
To: igt-dev@lists.freedesktop.org
Cc: daniel.vetter@intel.com, markyacoub@google.com
Subject: [igt-dev] [PATCH i-g-t] tests/kms_color: disable degamma/gamma by default for CTM tests
Date: Thu, 22 Dec 2022 23:41:24 -0100 [thread overview]
Message-ID: <20221223004124.36792-1-mwen@igalia.com> (raw)
The DRM color mgmt doc states "Each of the properties are optional" so
CTM test should not depend on degamma/gamma properties to run. Also,
setting each property individually is the way that atomic degamma/gamma
tests work. However, from previous discussions around 64d0ff72 [1], i915
seems to need degamma/gamma settings around the CTM property (except for
the max CTM cases). Therefore, remove dependency on degamma/gamma
support from CTM tests and only set them for i915 (keeping the skip for
max CTM cases).
[1] https://patchwork.freedesktop.org/patch/296122/?series=58412&rev=9
Signed-off-by: Melissa Wen <mwen@igalia.com>
---
tests/kms_color.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/tests/kms_color.c b/tests/kms_color.c
index d016cefb..e0c6a8bf 100644
--- a/tests/kms_color.c
+++ b/tests/kms_color.c
@@ -493,12 +493,15 @@ static bool test_pipe_ctm(data_t *data,
igt_assert(fb_modeset_id);
igt_plane_set_fb(primary, &fb_modeset);
+ disable_degamma(primary->pipe);
+ disable_gamma(primary->pipe);
+
/*
- * Don't program LUT's for max CTM cases, as limitation of
+ * Only program LUT's for i915, but not for max CTM as limitation of
* representing intermediate values between 0 and 1.0 causes
* rounding issues and inaccuracies leading to crc mismatch.
*/
- if (memcmp(before, after, sizeof(color_t))) {
+ if (is_i915_device(data->drm_fd) && memcmp(before, after, sizeof(color_t))) {
igt_require(igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_DEGAMMA_LUT));
igt_require(igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_GAMMA_LUT));
@@ -507,10 +510,6 @@ static bool test_pipe_ctm(data_t *data,
set_degamma(data, primary->pipe, degamma_linear);
set_gamma(data, primary->pipe, gamma_linear);
- } else {
- /* Disable Degamma and Gamma for ctm max test */
- disable_degamma(primary->pipe);
- disable_gamma(primary->pipe);
}
disable_ctm(primary->pipe);
--
2.35.1
next reply other threads:[~2022-12-23 0:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-23 0:41 Melissa Wen [this message]
2022-12-23 1:31 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_color: disable degamma/gamma by default for CTM tests Patchwork
2022-12-23 9:50 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-12-29 0:02 ` [igt-dev] [PATCH i-g-t] " Alex Hung
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=20221223004124.36792-1-mwen@igalia.com \
--to=mwen@igalia.com \
--cc=daniel.vetter@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=markyacoub@google.com \
/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