[igt-dev] [i-g-t 2/2] tests/kms_atomic_transition: Test cleanup

Bhanuprakash Modem bhanuprakash.modem at intel.com
Thu Feb 9 06:23:22 UTC 2023


As we are using same function for cleanup, no need to do other
stuff, just return after unsetting the output to pipe.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 tests/kms_atomic_transition.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index e1b74ac2c..6179232b5 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -714,6 +714,9 @@ static unsigned set_combinations(data_t *data, unsigned mask, struct igt_fb *fb)
 	for (i = 0; i < data->display.n_outputs; i++)
 		igt_output_set_pipe(&data->display.outputs[i], PIPE_NONE);
 
+	if (fb == NULL && !mask)
+		return event_mask;
+
 	for_each_pipe(&data->display, pipe) {
 		igt_plane_t *plane = igt_pipe_get_plane_type(&data->display.pipes[pipe],
 			DRM_PLANE_TYPE_PRIMARY);
-- 
2.39.0



More information about the igt-dev mailing list