mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-25 00:36:16 +00:00
igt/gem_concurrent_blit: Move igt_require() out of children
Otherwise the test infrastructure throws a fit. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83420 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
3309f54e8f
commit
081887504a
@ -319,7 +319,6 @@ static void render_copy_bo(drm_intel_bo *dst, drm_intel_bo *src)
|
|||||||
drm_intel_bo_get_tiling(dst, &d.tiling, &swizzle);
|
drm_intel_bo_get_tiling(dst, &d.tiling, &swizzle);
|
||||||
drm_intel_bo_get_tiling(src, &s.tiling, &swizzle);
|
drm_intel_bo_get_tiling(src, &s.tiling, &swizzle);
|
||||||
|
|
||||||
igt_require(rendercopy);
|
|
||||||
rendercopy(batch, NULL,
|
rendercopy(batch, NULL,
|
||||||
&s, 0, 0,
|
&s, 0, 0,
|
||||||
width, height,
|
width, height,
|
||||||
@ -459,6 +458,15 @@ static void run_forked(struct access_mode *mode,
|
|||||||
num_buffers = old_num_buffers;
|
num_buffers = old_num_buffers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void bcs_require(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static void rcs_require(void)
|
||||||
|
{
|
||||||
|
igt_require(rendercopy);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
run_basic_modes(struct access_mode *mode,
|
run_basic_modes(struct access_mode *mode,
|
||||||
drm_intel_bo **src, drm_intel_bo **dst,
|
drm_intel_bo **src, drm_intel_bo **dst,
|
||||||
@ -468,27 +476,34 @@ run_basic_modes(struct access_mode *mode,
|
|||||||
struct {
|
struct {
|
||||||
const char *prefix;
|
const char *prefix;
|
||||||
do_copy copy;
|
do_copy copy;
|
||||||
|
void (*require)(void);
|
||||||
} pipelines[] = {
|
} pipelines[] = {
|
||||||
{ "bcs", blt_copy_bo },
|
{ "bcs", blt_copy_bo, bcs_require },
|
||||||
{ "rcs", render_copy_bo },
|
{ "rcs", render_copy_bo, rcs_require },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
}, *p;
|
}, *p;
|
||||||
|
|
||||||
for (p = pipelines; p->prefix; p++) {
|
for (p = pipelines; p->prefix; p++) {
|
||||||
/* try to overwrite the source values */
|
/* try to overwrite the source values */
|
||||||
igt_subtest_f("%s-%s-overwrite-source%s", mode->name, p->prefix, suffix)
|
igt_subtest_f("%s-%s-overwrite-source%s", mode->name, p->prefix, suffix) {
|
||||||
|
p->require();
|
||||||
run_wrap_func(mode, src, dst, dummy,
|
run_wrap_func(mode, src, dst, dummy,
|
||||||
do_overwrite_source, p->copy);
|
do_overwrite_source, p->copy);
|
||||||
|
}
|
||||||
|
|
||||||
/* try to read the results before the copy completes */
|
/* try to read the results before the copy completes */
|
||||||
igt_subtest_f("%s-%s-early-read%s", mode->name, p->prefix, suffix)
|
igt_subtest_f("%s-%s-early-read%s", mode->name, p->prefix, suffix) {
|
||||||
|
p->require();
|
||||||
run_wrap_func(mode, src, dst, dummy,
|
run_wrap_func(mode, src, dst, dummy,
|
||||||
do_early_read, p->copy);
|
do_early_read, p->copy);
|
||||||
|
}
|
||||||
|
|
||||||
/* and finally try to trick the kernel into loosing the pending write */
|
/* and finally try to trick the kernel into loosing the pending write */
|
||||||
igt_subtest_f("%s-%s-gpu-read-after-write%s", mode->name, p->prefix, suffix)
|
igt_subtest_f("%s-%s-gpu-read-after-write%s", mode->name, p->prefix, suffix) {
|
||||||
|
p->require();
|
||||||
run_wrap_func(mode, src, dst, dummy,
|
run_wrap_func(mode, src, dst, dummy,
|
||||||
do_gpu_read_after_write, p->copy);
|
do_gpu_read_after_write, p->copy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user