From: Lyude <lyude@redhat.com>
To: igt-dev@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org,
Martin Peres <martin.peres@free.fr>,
Ben Skeggs <bskeggs@redhat.com>
Subject: [igt-dev] [PATCH i-g-t 3/3] tests/kms_color: Stop leaking fbs
Date: Wed, 17 Mar 2021 18:42:22 -0400 [thread overview]
Message-ID: <20210317224222.447100-4-lyude@redhat.com> (raw)
In-Reply-To: <20210317224222.447100-1-lyude@redhat.com>
From: Lyude Paul <lyude@redhat.com>
While I was testing this out with nouveau, I noticed that this test leaks
quite a lot of framebuffers. Didn't cause any issues, but we should fix
this while we're at it.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Martin Peres <martin.peres@free.fr>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Jeremy Cline <jcline@redhat.com>
---
tests/kms_color.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tests/kms_color.c b/tests/kms_color.c
index 02a1a2de..b1b91c74 100644
--- a/tests/kms_color.c
+++ b/tests/kms_color.c
@@ -105,6 +105,8 @@ static void test_pipe_degamma(data_t *data,
igt_plane_set_fb(primary, NULL);
igt_output_set_pipe(output, PIPE_NONE);
+ igt_remove_fb(data->drm_fd, &fb);
+ igt_remove_fb(data->drm_fd, &fb_modeset);
}
free_lut(degamma_linear);
@@ -189,6 +191,8 @@ static void test_pipe_gamma(data_t *data,
igt_plane_set_fb(primary, NULL);
igt_output_set_pipe(output, PIPE_NONE);
+ igt_remove_fb(data->drm_fd, &fb);
+ igt_remove_fb(data->drm_fd, &fb_modeset);
}
free_lut(gamma_full);
@@ -292,6 +296,8 @@ static void test_pipe_legacy_gamma(data_t *data,
igt_plane_set_fb(primary, NULL);
igt_output_set_pipe(output, PIPE_NONE);
+ igt_remove_fb(data->drm_fd, &fb);
+ igt_remove_fb(data->drm_fd, &fb_modeset);
}
free(red_lut);
@@ -510,6 +516,8 @@ static bool test_pipe_ctm(data_t *data,
igt_plane_set_fb(primary, NULL);
igt_output_set_pipe(output, PIPE_NONE);
+ igt_remove_fb(data->drm_fd, &fb);
+ igt_remove_fb(data->drm_fd, &fb_modeset);
}
free_lut(degamma_linear);
@@ -618,6 +626,9 @@ static void test_pipe_limited_range_ctm(data_t *data,
* equal to the CRC of the CTM matrix transformation output.
*/
igt_assert_crc_equal(&crc_full, &crc_limited);
+
+ igt_remove_fb(data->drm_fd, &fb);
+ igt_remove_fb(data->drm_fd, &fb_modeset);
}
free_lut(gamma_linear);
--
2.29.2
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2021-03-17 22:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-17 22:42 [igt-dev] [PATCH i-g-t 0/3] tests/kms_color: Fixup for nouveau Lyude
2021-03-17 22:42 ` [igt-dev] [PATCH i-g-t 1/3] tests/kms_color: Don't opencode igt_check_crc_equal() Lyude
2021-03-17 22:42 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_color: Allow tests to run on any driver Lyude
2021-03-17 22:42 ` Lyude [this message]
2021-03-18 0:14 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_color: Fixup for nouveau Patchwork
2021-03-18 2:50 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-03-18 6:42 ` [igt-dev] [PATCH i-g-t 0/3] " Martin Peres
2021-03-18 16:13 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_color: Fixup for nouveau (rev2) Patchwork
2021-03-18 19:19 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2021-03-22 15:20 ` [igt-dev] [PATCH i-g-t 0/3] tests/kms_color: Fixup for nouveau Jeremy Cline
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210317224222.447100-4-lyude@redhat.com \
--to=lyude@redhat.com \
--cc=bskeggs@redhat.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=martin.peres@free.fr \
--cc=nouveau@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox