[igt-dev] [PATCH i-g-t, 2/2] tests/kms_cursor_crc.c: Remove framebuffer at the end of the test

Mamta Shukla mamtashukla555 at gmail.com
Thu Jan 24 05:57:01 UTC 2019


Use igt_remove_fb(data->drm_fd, &data->fb) to remove locally created
framebuffer at the end of the hardware test.

Signed-off-by: Mamta Shukla <mamtashukla555 at gmail.com>
---
 tests/kms_cursor_crc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index c1ea7faf..0ac2c226 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -583,6 +583,7 @@ static void test_cursor_size(data_t *data)
 		igt_pipe_crc_collect_crc(pipe_crc, &crc[i]);
 	}
 	cursor_disable(data);
+	igt_remove_fb(data->drm_fd, &data->fb);
 	/* Software test loop */
 	for (i = 0, size = cursor_max_size; size >= 64; size /= 2, i++) {
 		/* Now render the same in software and collect crc */
-- 
2.17.1



More information about the igt-dev mailing list