Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t] tests/kms_color: Fix ctm-0.* tests
@ 2022-09-25 16:00 Bhanuprakash Modem
  2022-09-25 16:40 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Bhanuprakash Modem @ 2022-09-25 16:00 UTC (permalink / raw)
  To: igt-dev

As we are testing with a few values around the expected result
because of the hardware rounded values, fix the logic to generate
the expected values to deal with those hardware rounding issues.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/kms_color.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_color.c b/tests/kms_color.c
index ab285af8..2804bde8 100644
--- a/tests/kms_color.c
+++ b/tests/kms_color.c
@@ -770,7 +770,7 @@ run_ctm_tests_for_pipe(data_t *data, enum pipe p,
 			expected_colors[0].r =
 				expected_colors[1].g =
 				expected_colors[2].b =
-				0.5 + delta * (i - 2);
+				ctm[0] + delta * (i - (iter / 2));
 			if (test_pipe_ctm(data, data->primary, red_green_blue,
 					  expected_colors, ctm)) {
 				success = true;
-- 
2.37.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-26 14:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-25 16:00 [igt-dev] [i-g-t] tests/kms_color: Fix ctm-0.* tests Bhanuprakash Modem
2022-09-25 16:40 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2022-09-25 17:24 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_color: Fix ctm-0.* tests (rev2) Patchwork
2022-09-25 18:33 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-09-26  9:32 ` [igt-dev] [i-g-t] tests/kms_color: Fix ctm-0.* tests Ville Syrjälä
2022-09-26 14:19   ` Modem, Bhanuprakash

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox