mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 23:06:29 +00:00
igt/gem_fenced_exec_thrash: Fix memory leak between tests
gem_fenced_exec_thrash was not freeing any resources between subtests. On 1Gb android systems this resulted in the test failing with an OOM error. Added cleanup code to free BOs at the end of each subtest. Signed-off-by: Derek Morton <derek.j.morton@intel.com>
This commit is contained in:
parent
eeda401391
commit
c69b135783
@ -215,6 +215,18 @@ static void run_test(int fd, int num_fences, int expected_errno,
|
||||
|
||||
if (flags & INTERRUPTIBLE)
|
||||
igt_stop_signal_helper();
|
||||
|
||||
/* Cleanup */
|
||||
for (n = 0; n < 2*num_fences; n++)
|
||||
gem_close(fd, exec[0][n].handle);
|
||||
|
||||
for (i = 0; i < 2; i++)
|
||||
gem_close(fd, exec[i][2*num_fences].handle);
|
||||
|
||||
if (flags & BUSY_LOAD) {
|
||||
intel_batchbuffer_free(batch);
|
||||
drm_intel_bufmgr_destroy(bufmgr);
|
||||
}
|
||||
}
|
||||
|
||||
int fd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user