[igt-dev] [PATCH i-g-t 2/2] tests/kms_plane_alpha_blend: reset display after test
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Tue Aug 17 09:27:24 UTC 2021
If test would fail alpha/blend settings would be left on random
setting. Clean up before exiting.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
tests/kms_plane_alpha_blend.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
index cb8f92891..cff9a9eff 100644
--- a/tests/kms_plane_alpha_blend.c
+++ b/tests/kms_plane_alpha_blend.c
@@ -586,6 +586,11 @@ igt_main
igt_subtest_group
run_subtests(&data, pipe);
- igt_fixture
+ igt_fixture {
+ igt_display_reset(&data.display);
+ igt_display_commit2(&data.display, data.display.is_atomic ?
+ COMMIT_ATOMIC : COMMIT_LEGACY);
+
igt_display_fini(&data.display);
+ }
}
--
2.28.0
More information about the igt-dev
mailing list