[i-g-t 4/4] tests/kms_vrr: Fix virtual mode for CMRR subtest
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Fri Jun 21 08:47:11 UTC 2024
Instead of tweaking the mode->clock, change the mode->vtotal
to create the virtual mode.
Cc: Mitul Golani <mitulkumar.ajitkumar.golani at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_vrr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index 6f90f4729..f12d23c3c 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -809,9 +809,9 @@ test_cmrr(data_t *data, enum pipe pipe, igt_output_t *output, uint32_t flags)
kmstest_dump_mode(&mode);
if (!found) {
- igt_info("No CMRR mode found on %s, try to tweak the clock.\n", output->name);
+ igt_info("No CMRR mode found on %s, try to tweak the mode.\n", output->name);
- mode.clock = (mode.htotal * mode.vtotal * (mode.vrefresh + VREFRESH_MODIFIER)) / 1000;
+ virtual_rr_vrr_range_mode(&mode, mode.vrefresh + VREFRESH_MODIFIER);
igt_info("Tweaked mode: ");
kmstest_dump_mode(&mode);
--
2.43.2
More information about the igt-dev
mailing list