diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-29 17:21:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-29 17:41:01 +0100 |
commit | 93550043ca80caf7f754ae89825b1f618430b29d (patch) | |
tree | a491573b0a1493847b6a5b63201b5779ad06bdaa | |
parent | 865b7821e37dbca4cc0c2ff6f91236c09e91b26b (diff) |
kms_flip: Use the first mode if we find no matching modes for the crtc pair
We will check that we can set the mode on both crtcs before use, so
hopefully this will work...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/kms_flip.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 965b44c2..0b8a0a88 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -961,7 +961,9 @@ static void connector_find_compatible_mode(int crtc_idx0, int crtc_idx1, goto found; } } - return; + + /* hope for the best! */ + mode[1] = mode[0] = &config[0].default_mode; } found: @@ -1462,8 +1464,10 @@ int main(int argc, char **argv) } for (i = 0; i < sizeof(tests) / sizeof (tests[0]); i++) { +#if 0 igt_subtest(tests[i].name) run_test(tests[i].duration, tests[i].flags); +#endif igt_subtest_f( "2x-%s", tests[i].name) run_pair(tests[i].duration, tests[i].flags); |