[i-g-t 4/6] tests/intel/kms_dirtyfb: Do modeset in init
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Tue Dec 26 12:59:18 UTC 2023
Make sure to do a modeset before checking the feature availability
on selected pipe/output.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/intel/kms_dirtyfb.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
index cd784878c..18848c230 100644
--- a/tests/intel/kms_dirtyfb.c
+++ b/tests/intel/kms_dirtyfb.c
@@ -109,8 +109,8 @@ static bool check_support(data_t *data)
return psr_sink_support(data->drm_fd, data->debugfs_fd,
PSR_MODE_1, NULL);
case FEATURE_DRRS:
- return intel_is_drrs_supported(data->drm_fd, data->pipe) &&
- intel_output_has_drrs(data->drm_fd, data->output);
+ return intel_output_has_drrs(data->drm_fd, data->output) &&
+ intel_is_drrs_supported(data->drm_fd, data->pipe);
case FEATURE_DEFAULT:
return true;
default:
@@ -321,13 +321,14 @@ igt_main
for_each_valid_output_on_pipe(&data.display,
data.pipe,
data.output) {
- if (!check_support(&data))
- continue;
-
igt_display_reset(&data.display);
igt_output_set_pipe(data.output, data.pipe);
if (!intel_pipe_output_combo_valid(&data.display))
continue;
+ igt_display_commit2(&data.display, COMMIT_ATOMIC);
+
+ if (!check_support(&data))
+ continue;
valid_tests++;
igt_dynamic_f("%s-%s",
--
2.40.0
More information about the Intel-gfx-trybot
mailing list