mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-26 09:16:34 +00:00
igt/gem_concurrent_blit: Check inheritance of buffers
The current forked modes recreate their handles in the children and just look at any complications arising from contention. This mode looks at inheriting the fd+handles from the parent into the child and seeing if we can use them within the child. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
512f846f37
commit
4645630d3e
@ -1129,6 +1129,19 @@ static void run_interruptible(struct buffers *buffers,
|
|||||||
igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
|
igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void run_child(struct buffers *buffers,
|
||||||
|
do_test do_test_func,
|
||||||
|
do_copy do_copy_func,
|
||||||
|
do_hang do_hang_func)
|
||||||
|
|
||||||
|
{
|
||||||
|
igt_fork(child, 1)
|
||||||
|
do_test_func(buffers, do_copy_func, do_hang_func);
|
||||||
|
|
||||||
|
igt_waitchildren();
|
||||||
|
igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
|
||||||
|
}
|
||||||
|
|
||||||
static void __run_forked(struct buffers *buffers,
|
static void __run_forked(struct buffers *buffers,
|
||||||
int num_children, int loops,
|
int num_children, int loops,
|
||||||
do_test do_test_func,
|
do_test do_test_func,
|
||||||
@ -1422,6 +1435,7 @@ run_modes(const char *style, const struct access_mode *mode, unsigned allow_mem)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
run_basic_modes(style, mode, "", run_single);
|
run_basic_modes(style, mode, "", run_single);
|
||||||
|
run_basic_modes(style, mode, "-child", run_child);
|
||||||
run_basic_modes(style, mode, "-forked", run_forked);
|
run_basic_modes(style, mode, "-forked", run_forked);
|
||||||
|
|
||||||
igt_fork_signal_helper();
|
igt_fork_signal_helper();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user