[PATCH i-g-t] tests/kms_vrr: Skip LOBF test if PR is not supported on sink

Jeevan B jeevan.b at intel.com
Wed Jun 11 15:44:04 UTC 2025


LOBF requires Panel Replay, which is only available on eDP 1.5 panel.
If PR is not supported on the sink, skip the test early since LOBF
cannot be enabled without it.

Signed-off-by: Jeevan B <jeevan.b at intel.com>
---
 tests/kms_vrr.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index d371d9d7f..4919b7cb7 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -1049,6 +1049,11 @@ run_vrr_test(data_t *data, test_t test, uint32_t flags)
 				continue;
 			}
 
+			if (flags == TEST_LINK_OFF)
+				igt_require_f(psr_sink_support(data->drm_fd,
+					      data->debugfs_fd, PR_MODE, output),
+					      "LOBF not supported");
+
 			igt_dynamic_f("pipe-%s-%s",
 				      kmstest_pipe_name(pipe), output->name)
 				test(data, pipe, output, flags);
-- 
2.25.1



More information about the igt-dev mailing list