In order to increase tests performance limit suspend-resume's execution
to only first and last CRTC.
v3->v4
- use crtc instead of display->crtcs (Mohammed)
- use proper logic operator (Mohammed)
v2->v3
- add missing S-O-B
Signed-off-by: Michał Grzelak <redacted>
---
tests/kms_async_flips.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 8884efd8ba..f373dfcd95 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -873,6 +873,7 @@ static void run_test(data_t *data, void (*test)(data_t *))
{
igt_crtc_t *crtc;
igt_display_t *display = &data->display;
+ int idx;
if (data->atomic_path)
require_atomic_async_cap(data);@@ -885,6 +886,10 @@ static void run_test(data_t *data, void (*test)(data_t *))
data->crtc = crtc;
igt_display_reset(display);
+ idx = crtc->crtc_index;
+ if (data->suspend_resume && idx != 0 && idx != display->n_crtcs - 1)
+ continue;
+
igt_output_set_crtc(data->output,
crtc);
if (!intel_pipe_output_combo_valid(display))
--
2.45.2