diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-15 09:01:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-07-15 09:04:15 +0100 |
commit | c8ab577cbdeb5480f000f55ed2decae7b7932197 (patch) | |
tree | a1530140612f4e9537ae17faccde910d85042132 /tests/vgem_basic.c | |
parent | 2ed42d3c4dc180ddbb99b1292f8656ca52d1d90e (diff) |
igt/vgem_slow/nohang: Test fence autotimeout
To protect the kernel against unscrupulous fence users, fences should
automatically signal after a timeout.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/vgem_basic.c')
-rw-r--r-- | tests/vgem_basic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/vgem_basic.c b/tests/vgem_basic.c index 31166241..591973d0 100644 --- a/tests/vgem_basic.c +++ b/tests/vgem_basic.c @@ -172,7 +172,7 @@ static void test_dmabuf_fence(int fd) dmabuf = prime_handle_to_fd(fd, bo.handle); - fence = vgem_fence_attach(fd, &bo, false); + fence = vgem_fence_attach(fd, &bo, 0); igt_assert(!prime_busy(dmabuf, false)); igt_assert(prime_busy(dmabuf, true)); @@ -180,7 +180,7 @@ static void test_dmabuf_fence(int fd) igt_assert(!prime_busy(dmabuf, false)); igt_assert(!prime_busy(dmabuf, true)); - fence = vgem_fence_attach(fd, &bo, true); + fence = vgem_fence_attach(fd, &bo, VGEM_FENCE_WRITE); igt_assert(prime_busy(dmabuf, false)); igt_assert(prime_busy(dmabuf, true)); @@ -202,7 +202,7 @@ static void test_dmabuf_fence_before(int fd) bo.bpp = 32; vgem_create(fd, &bo); - fence = vgem_fence_attach(fd, &bo, false); + fence = vgem_fence_attach(fd, &bo, 0); dmabuf = prime_handle_to_fd(fd, bo.handle); igt_assert(!prime_busy(dmabuf, false)); @@ -215,7 +215,7 @@ static void test_dmabuf_fence_before(int fd) gem_close(fd, bo.handle); vgem_create(fd, &bo); - fence = vgem_fence_attach(fd, &bo, true); + fence = vgem_fence_attach(fd, &bo, VGEM_FENCE_WRITE); dmabuf = prime_handle_to_fd(fd, bo.handle); igt_assert(prime_busy(dmabuf, false)); igt_assert(prime_busy(dmabuf, true)); |