diff options
author | Imre Deak <imre.deak@intel.com> | 2012-10-16 17:34:36 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-10-16 16:52:04 +0200 |
commit | 472e8a70c227807cf77db13d460e695d82b300ae (patch) | |
tree | 3c4dbe08b174502e2aab83b43ca8117e603e9817 /tests/flip_test.c | |
parent | 21393431f191d3c51b98f5acd507418b126f6cf7 (diff) |
flip_test: free FBs after each test run
Though the FBs will be freed implicitly at process exit, with the
growing number of test cases it's probably better not to let them
accumulate and free them as soon as we can.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/flip_test.c')
-rw-r--r-- | tests/flip_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/flip_test.c b/tests/flip_test.c index 3103589..d018c50 100644 --- a/tests/flip_test.c +++ b/tests/flip_test.c @@ -525,6 +525,9 @@ static void flip_mode(struct test_output *o, int crtc, int duration) fprintf(stdout, "\npage flipping on crtc %d, connector %d: PASSED\n", crtc, o->id); + kmstest_remove_fb(drm_fd, o->fb_ids[1]); + kmstest_remove_fb(drm_fd, o->fb_ids[0]); + drmModeFreeEncoder(o->encoder); drmModeFreeConnector(o->connector); } |