diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-06-29 17:41:05 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-06-29 17:42:02 +0100 |
commit | d1baebc2fe147f702022c7ec818fb5d7b1965192 (patch) | |
tree | 0fcfd47a5836035f4d9e1b35400ab3ad03390641 | |
parent | 0552e40727a4d95967a9f95954e6046eb3ddca5d (diff) |
igt/gem_ctx_switch: Actually force the context-switch
The intent is that during interruptible runs we always force a
relocation between batch. This requires us to set an invalid
presumed_offset.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/gem_ctx_switch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_ctx_switch.c b/tests/gem_ctx_switch.c index 80ebce5d..b6ea71cf 100644 --- a/tests/gem_ctx_switch.c +++ b/tests/gem_ctx_switch.c @@ -120,7 +120,7 @@ static void single(int fd, uint32_t handle, igt_while_interruptible(flags & INTERRUPTIBLE) { for (int loop = 0; loop < 64; loop++) { execbuf.rsvd1 = contexts[loop % 64]; - reloc.presumed_offset = 0; + reloc.presumed_offset = -1; gem_execbuf(fd, &execbuf); } count += 64; |