[igt-dev] [PATCH] tests/kms_bw: remove fb in the reverse order
Alex Hung
alex.hung at amd.com
Wed Dec 21 01:23:10 UTC 2022
Some systems observe instability if fb is not removed in the
reverse order.
Signed-off-by: Alex Hung <alex.hung at amd.com>
---
tests/kms_bw.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index 2a8df5b3..9ecd58af 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -194,6 +194,13 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfo
igt_pipe_crc_collect_crc(data->pipe_crc[i], &captured[i]);
igt_assert_f(!igt_check_crc_equal(&zero, &captured[i]),
"CRC is zero\n");
+ }
+
+ for (i = pipe; i >= 0; i--) {
+ output = data->output[i];
+ if (!output)
+ continue;
+
igt_remove_fb(display->drm_fd, &buffer[i]);
}
--
2.39.0
More information about the igt-dev
mailing list