diff options
author | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2022-09-26 08:41:58 +0530 |
---|---|---|
committer | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2022-09-27 08:36:07 +0530 |
commit | fac15df438b13f585c128a4c7930e6b08e89e4c0 (patch) | |
tree | 1f07a59c81029e615339c252f583558081da2b81 | |
parent | adf9a083683f1c1a70a969dbb00c8e0ea6f06281 (diff) |
tests/chamelium/kms_color_chamelium: Fix ctm-0.* tests
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: Kunal Joshi <kunal1.joshi@intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>
-rw-r--r-- | tests/chamelium/kms_color_chamelium.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/chamelium/kms_color_chamelium.c b/tests/chamelium/kms_color_chamelium.c index 401f78c8e..792aef8a6 100644 --- a/tests/chamelium/kms_color_chamelium.c +++ b/tests/chamelium/kms_color_chamelium.c @@ -513,7 +513,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, data->ports[port_idx])) { |