[i-g-t V6 05/10] tests/kms_vrr: Fix the logic to calculate expected rate

Golani, Mitulkumar Ajitkumar mitulkumar.ajitkumar.golani at intel.com
Mon Dec 11 06:56:47 UTC 2023



> -----Original Message-----
> From: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>
> Sent: Thursday, December 7, 2023 12:19 PM
> To: igt-dev at lists.freedesktop.org; ville.syrjala at linux.intel.com; Golani,
> Mitulkumar Ajitkumar <mitulkumar.ajitkumar.golani at intel.com>
> Cc: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>
> Subject: [i-g-t V6 05/10] tests/kms_vrr: Fix the logic to calculate expected rate
> 
> 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 4540d8b4b..db82cd008
> 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

This can be squashed to next patches, as that resembles its purpose of use.

Regards,
Mitul



More information about the igt-dev mailing list