mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
tests: use subtests in gem_tiled_swapping
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
ae3a946631
commit
3bebf3dd01
@ -143,11 +143,12 @@ static void thread_fini(struct thread *t)
|
||||
free(t->idx_arr);
|
||||
}
|
||||
|
||||
igt_simple_main
|
||||
igt_main
|
||||
{
|
||||
struct thread *threads;
|
||||
int fd, n, count, num_threads;
|
||||
|
||||
igt_fixture {
|
||||
current_tiling_mode = I915_TILING_X;
|
||||
|
||||
intel_purge_vm_caches();
|
||||
@ -175,10 +176,13 @@ igt_simple_main
|
||||
/* Not enough mmap address space possible. */
|
||||
igt_require(bo_handles[n]);
|
||||
}
|
||||
}
|
||||
|
||||
igt_subtest("non-threaded") {
|
||||
thread_init(&threads[0], fd, count);
|
||||
thread_run(&threads[0]);
|
||||
thread_fini(&threads[0]);
|
||||
}
|
||||
|
||||
/* Once more with threads */
|
||||
igt_subtest("threaded") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user