Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [i-g-t V3 5/7] tests/kms_vrr: Fix the logic to calculate expected rate
Date: Fri,  1 Dec 2023 09:31:17 +0530	[thread overview]
Message-ID: <20231201040119.2954812-6-bhanuprakash.modem@intel.com> (raw)
In-Reply-To: <20231201040119.2954812-1-bhanuprakash.modem@intel.com>

Fix the condition check to measure the expected refresh rate.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@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 71b9e4735..1809164eb 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -327,7 +327,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

  parent reply	other threads:[~2023-12-01  4:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-01  4:01 [igt-dev] [i-g-t V3 0/7] tests/kms_vrr: Add new subtest to switch RR without modeset Bhanuprakash Modem
2023-12-01  4:01 ` [igt-dev] [i-g-t V3 1/7] tests/kms_vrr: Use lib helper to print connector modes Bhanuprakash Modem
2023-12-01  4:01 ` [igt-dev] [i-g-t V3 2/7] tests/kms_vrr: Clear VRR before exit Bhanuprakash Modem
2023-12-01  4:01 ` [igt-dev] [i-g-t V3 3/7] tests/kms_vrr: Move all config constaints to new function Bhanuprakash Modem
2023-12-01  4:01 ` [igt-dev] [i-g-t V3 4/7] tests/kms_vrr: Fix bigjoiner constraint Bhanuprakash Modem
2023-12-01  4:01 ` Bhanuprakash Modem [this message]
2023-12-01  4:01 ` [igt-dev] [i-g-t V3 6/7] tests/kms_vrr: Add new subtest to switch RR without modeset Bhanuprakash Modem
2023-12-01  4:01 ` [igt-dev] [i-g-t V3 7/7] HAX: DO_NOT_MERGE: test only seamless-rr-switch Bhanuprakash Modem
2023-12-01  5:09 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_vrr: Add new subtest to switch RR without modeset (rev4) Patchwork
2023-12-01  5:36 ` [igt-dev] ✗ CI.xeBAT: failure " Patchwork
2023-12-02  9:40 ` [igt-dev] ✗ Fi.CI.IGT: " Patchwork

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=20231201040119.2954812-6-bhanuprakash.modem@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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