tests/kms_vrr: Pull Panel Replay check before setting up output
PATCH 1/1 tests/kms_vrr: Pull Panel Replay check before setting up output
Adding the Panel Replay support check later in the test was causing an invalid skip, since the test disables PSR/PR in output_constraint(). Move the check earlier to ensure correct capability detection and avoid unintended skips.
v2: Refactor TEST_LINK_OFF logic to avoid duplicate conditions.
Fixes 7da0c57182cc ("tests/kms_vrr: Skip LOBF test if PR is not supported on sink")
Signed-off-by Jeevan B <[email protected]>
--- tests/kms_vrr.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)
tests/kms_vrr.c +11 -8
@@ -961,9 +961,17 @@ static bool output_constraint(data_t *data, igt_output_t *output, uint32_t flags }if (flags &TEST_LINK_OFF ) { -if (psr_sink_support (data->drm_fd, data->debugfs_fd,PSR_MODE_1 ,NULL ) || -psr_sink_support (data->drm_fd, data->debugfs_fd,PR_MODE ,NULL )) -psr_disable (data->drm_fd, data->debugfs_fd,NULL ); +if (!psr_sink_support (data->drm_fd, + data->debugfs_fd,PR_MODE ,NULL )) { +igt_info ("LOBF not supported\n" ); +return false; + } + +if (flags &TEST_LINK_OFF ) { +if (psr_sink_support (data->drm_fd, data->debugfs_fd,PSR_MODE_1 ,NULL ) || +psr_sink_support (data->drm_fd, data->debugfs_fd,PR_MODE ,NULL )) +psr_disable (data->drm_fd, data->debugfs_fd,NULL ); + } }/* Reset output */
@@ -1051,11 +1059,6 @@ 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);
Signature · 1 line
2.43.0