[igt-dev] [i-g-t V4 5/7] tests/kms_vrr: Fix the logic to calculate expected rate

Bhanuprakash Modem bhanuprakash.modem at intel.com
Fri Dec 1 14:17:01 UTC 2023


Fix the condition check to measure the expected refresh rate.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/kms_vrr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index 2918f7860..422d89073 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -329,7 +329,7 @@ flip_and_measure(data_t *data, igt_output_t *output, enum pipe pipe,
 		 * difference between 144Hz and 143Hz which should give this
 		 * enough accuracy for most use cases.
 		 */
-		if ((rate_ns < vtest_ns.min) && (rate_ns >= vtest_ns.max))
+		if ((rate_ns <= vtest_ns.min) && (rate_ns >= vtest_ns.max))
 			diff_ns = rate_ns;
 		else
 			diff_ns = vtest_ns.max;
-- 
2.40.0



More information about the igt-dev mailing list