diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-26 20:41:00 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-26 20:55:54 +0200 |
commit | ad0f081f2b569a2392d0df1fe7bb140b57d91a46 (patch) | |
tree | e115e864de1611540238893e72b13ea137687b81 | |
parent | 8869e1e6281139f2c12a9a774becd6c1f892274f (diff) |
Revert "tests/gem_concurrent_blit: Fix segmentation fault"
This reverts commit 912a7d855600aadb937517ec5bab26bfd9b8953d.
Now fixed for real!
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | lib/drmtest.c | 4 | ||||
-rw-r--r-- | tests/gem_concurrent_blit.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index 6247ef57..ed249f96 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -654,8 +654,6 @@ static enum { bool __igt_fixture(void) { - assert(!in_fixture); - if (igt_only_list_subtests()) return false; @@ -673,8 +671,6 @@ void __igt_fixture_complete(void) void __igt_fixture_end(void) { - assert(in_fixture); - in_fixture = false; longjmp(igt_subtest_jmpbuf, 1); } diff --git a/tests/gem_concurrent_blit.c b/tests/gem_concurrent_blit.c index d9ef5b56..69477748 100644 --- a/tests/gem_concurrent_blit.c +++ b/tests/gem_concurrent_blit.c @@ -333,11 +333,11 @@ run_basic_modes(struct access_mode *mode, run_wrap_func(mode, src, dst, dummy, do_gpu_read_after_write); } -drm_intel_bo *src[MAX_NUM_BUFFERS], *dst[MAX_NUM_BUFFERS], *dummy = NULL; - static void run_modes(struct access_mode *mode) { + drm_intel_bo *src[MAX_NUM_BUFFERS], *dst[MAX_NUM_BUFFERS], *dummy = NULL; + igt_fixture { bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); drm_intel_bufmgr_gem_enable_reuse(bufmgr); |