summaryrefslogtreecommitdiff
path: root/tests/kms_concurrent.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2021-10-12 03:29:25 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-10-18 16:29:41 +0300
commite5426511d95bdf4a459ad3db70dfe148d1d3c8ff (patch)
treee14f6b495f3d0b4bc31cca83e91f7978a7c8df6c /tests/kms_concurrent.c
parent674604c078c24f6be43b4976a990d0fc91c4491e (diff)
tests/kms_concurrent: Use preferred modes's vrefresh
i915 will reject custom modes that don't match the laptop panel's fixed mode refresh rate. Thus we must generate our override modes with a matching refresh rate. Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/4284 Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_concurrent.c')
-rw-r--r--tests/kms_concurrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c
index 085eaa0a..1b8f4b04 100644
--- a/tests/kms_concurrent.c
+++ b/tests/kms_concurrent.c
@@ -240,7 +240,7 @@ get_lowres_mode(data_t *data, const drmModeModeInfo *mode_default,
return igt_memdup(mode, sizeof(*mode));
}
- return igt_std_1024_mode_get(60);
+ return igt_std_1024_mode_get(igt_output_preferred_vrefresh(output));
}
static void