summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-05-18 14:20:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-05-18 14:21:59 +0100
commit9ba644d95d7692de134614305955d02668e08952 (patch)
tree7c4f9389242383bbe5403705d1f064bb88b333ed
parentbc7877660c7d7a733ec484e91e2096b8daf2cf0d (diff)
igt/gem_exec_fence: Skip await test if store-dword is not support
The request we await for is just to store a dword, if the device doesn't support store-dword we will do no awaits and so not actually test anything. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/gem_exec_fence.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_exec_fence.c b/tests/gem_exec_fence.c
index 59aa8e67..05e55f03 100644
--- a/tests/gem_exec_fence.c
+++ b/tests/gem_exec_fence.c
@@ -224,6 +224,8 @@ static void test_fence_await(int fd, unsigned ring, unsigned flags)
unsigned engine;
int fence, i;
+ igt_require(gem_can_store_dword(fd, 0));
+
memset(&execbuf, 0, sizeof(execbuf));
execbuf.buffers_ptr = to_user_pointer(&obj);
execbuf.buffer_count = 1;