mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
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>
This commit is contained in:
parent
21393431f1
commit
472e8a70c2
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user