From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Shankar, Uma" <uma.shankar@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"Syrjala, Ville" <ville.syrjala@intel.com>,
"Lankhorst, Maarten" <maarten.lankhorst@intel.com>
Subject: Re: [igt-dev] [v3] tests/kms_color: Fix CRC mismatch issues with ctm test
Date: Wed, 27 Mar 2019 12:36:32 +0200 [thread overview]
Message-ID: <20190327103632.GC3888@intel.com> (raw)
In-Reply-To: <E7C9878FBA1C6D42A1CA3F62AEB6945F81F8F141@BGSMSX104.gar.corp.intel.com>
On Wed, Mar 27, 2019 at 06:20:10AM +0000, Shankar, Uma wrote:
>
>
> >-----Original Message-----
> >From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
> >Sent: Tuesday, March 26, 2019 10:16 PM
> >To: Shankar, Uma <uma.shankar@intel.com>
> >Cc: igt-dev@lists.freedesktop.org; Syrjala, Ville <ville.syrjala@intel.com>; Lankhorst,
> >Maarten <maarten.lankhorst@intel.com>
> >Subject: Re: [igt-dev] [v3] tests/kms_color: Fix CRC mismatch issues with ctm test
> >
> >On Tue, Mar 26, 2019 at 10:31:01AM +0000, Shankar, Uma wrote:
> >>
> >>
> >> >-----Original Message-----
> >> >From: Shankar, Uma
> >> >Sent: Monday, March 25, 2019 2:11 PM
> >> >To: igt-dev@lists.freedesktop.org
> >> >Cc: Shankar, Uma <uma.shankar@intel.com>
> >> >Subject: [v3] tests/kms_color: Fix CRC mismatch issues with ctm test
> >> >
> >> >Due to Gamma/Degamma limitation with precision (lack of exact 1.0
> >> >representation) due to ABI restriction, applying linear gamma affects
> >> >crc. This patch fixes the same by making ctm tests independant of
> >gamma/degamma.
> >> >
> >> >v2: Disable degamma/gamma programming for ctm max test as it leads to
> >> >crc mimsmatch. Limiting it to this test case alone as other tests
> >> >need it to be enabled, hence not touching those scenarios.
> >> >
> >> >v3: Fixed a fumble with compilation.
> >>
> >> Hi Ville,
> >> Can I keep your RB on this version. We have a clean CI result available now.
> >
> >I'm confused. Why didn't disabling degamma+gamma work?
>
> We need to disable degamma/gamma and also make sure we don't set them again with
> linear values, which was being done currently. Hence, disabled it and later made sure it's
> kept at that.
Who is turning it back on and why?
>
> Regards,
> Uma Shankar
>
> >>
> >> Thanks & Regards,
> >> Uma Shankar
> >>
> >> >Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108147
> >> >Signed-off-by: Uma Shankar <uma.shankar@intel.com>
> >> >---
> >> > tests/kms_color.c | 16 ++++++++++++++--
> >> > 1 file changed, 14 insertions(+), 2 deletions(-)
> >> >
> >> >diff --git a/tests/kms_color.c b/tests/kms_color.c index
> >> >decf3c2..dcc86ad 100644
> >> >--- a/tests/kms_color.c
> >> >+++ b/tests/kms_color.c
> >> >@@ -696,8 +696,15 @@ static bool test_pipe_ctm(data_t *data,
> >> > igt_assert(fb_modeset_id);
> >> > igt_plane_set_fb(primary, &fb_modeset);
> >> >
> >> >- set_degamma(data, primary->pipe, degamma_linear);
> >> >- set_gamma(data, primary->pipe, gamma_linear);
> >> >+ /*
> >> >+ * Don't program LUT's for max CTM cases as limitation of
> >> >+ * representing 1.0 due to ABI limits causes crc mismatch
> >> >+ */
> >> >+ if (memcmp(before, after, sizeof(color_t))) {
> >> >+ set_degamma(data, primary->pipe, degamma_linear);
> >> >+ set_gamma(data, primary->pipe, gamma_linear);
> >> >+ }
> >> >+
> >> > disable_ctm(primary->pipe);
> >> > igt_display_commit(&data->display);
> >> >
> >> >@@ -1005,6 +1012,11 @@ run_tests_for_pipe(data_t *data, enum pipe p)
> >> > * produce with an 8 bits per color framebuffer. */
> >> > igt_require(!IS_CHERRYVIEW(data->devid));
> >> >
> >> >+ /* Disable and let default luts be applied by kernel */
> >> >+ disable_degamma(primary->pipe);
> >> >+ disable_gamma(primary->pipe);
> >> >+ igt_display_commit(&data->display);
> >> >+
> >> > igt_assert(test_pipe_ctm(data, primary, red_green_blue,
> >> > full_rgb, ctm));
> >> > }
> >> >--
> >> >1.9.1
> >>
> >> _______________________________________________
> >> igt-dev mailing list
> >> igt-dev@lists.freedesktop.org
> >> https://lists.freedesktop.org/mailman/listinfo/igt-dev
> >
> >--
> >Ville Syrjälä
> >Intel
--
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-03-27 10:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-25 8:40 [igt-dev] [v3] tests/kms_color: Fix CRC mismatch issues with ctm test Uma Shankar
2019-03-25 8:49 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_color: Fix CRC mismatch issues with ctm test (rev4) Patchwork
2019-03-25 14:27 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_color: Fix CRC mismatch issues with ctm test (rev5) Patchwork
2019-03-26 9:51 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_color: Fix CRC mismatch issues with ctm test (rev6) Patchwork
2019-03-26 10:31 ` [igt-dev] [v3] tests/kms_color: Fix CRC mismatch issues with ctm test Shankar, Uma
2019-03-26 16:46 ` Ville Syrjälä
2019-03-27 6:20 ` Shankar, Uma
2019-03-27 10:36 ` Ville Syrjälä [this message]
2019-03-27 10:52 ` Shankar, Uma
2019-03-27 11:35 ` Ville Syrjälä
2019-03-27 13:37 ` Shankar, Uma
2019-03-28 19:38 ` Ville Syrjälä
2019-03-28 19:53 ` Shankar, Uma
2019-03-28 20:50 ` Shankar, Uma
2019-03-26 12:34 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_color: Fix CRC mismatch issues with ctm test (rev6) Patchwork
-- strict thread matches above, loose matches on Subject: below --
2019-03-25 7:07 [igt-dev] [v3] tests/kms_color: Fix CRC mismatch issues with ctm test Uma Shankar
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=20190327103632.GC3888@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=maarten.lankhorst@intel.com \
--cc=uma.shankar@intel.com \
--cc=ville.syrjala@intel.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