[PATCH i-g-t v2 04/16] tests/kms_async_flips: limit S/R to first and last CRTC
Michał Grzelak <[email protected]>
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Organization | Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 |
| Message-ID | <[email protected]> |
In order to increase tests performance limit suspend-resume's execution
to only first and last CRTC.
---
tests/kms_async_flips.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 03348d958d..5c143e71df 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -873,18 +873,23 @@ 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);
for_each_connected_output(display, data->output) {
for_each_crtc(&data->display, crtc) {
- if(!igt_crtc_connector_valid(crtc, data->output))
+ if (!igt_crtc_connector_valid(crtc, data->output))
continue;
data->crtc = crtc;
igt_display_reset(display);
+ idx = display->crtcs->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