summaryrefslogtreecommitdiff
path: root/tests/kms_cursor_crc.c
diff options
context:
space:
mode:
authorMamta Shukla <mamtashukla555@gmail.com>2019-02-03 20:15:40 +0530
committerPetri Latvala <petri.latvala@intel.com>2019-02-04 15:03:45 +0200
commitcfc9ee5ba55f4d37af81f61f3ff80da5eac75a08 (patch)
treec343ceb2d35967b054ab318c7a552d1f2d24753f /tests/kms_cursor_crc.c
parent7d65ed2f230fd5cd0e2670d26db971cea885c493 (diff)
tests/kms_cursor_crc.c: Remove framebuffer at the end of the test
Use igt_remove_fb(data->drm_fd, &data->fb) to remove locally created framebuffer at the end of the hardware test loop in test_cursor_size() function for cursor-size-change subtest in kms_cursor_crc. Signed-off-by: Mamta Shukla <mamtashukla555@gmail.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Diffstat (limited to 'tests/kms_cursor_crc.c')
-rw-r--r--tests/kms_cursor_crc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 144b44b0..fd74fda5 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 */