summaryrefslogtreecommitdiff
path: root/tests/gem_bad_reloc.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-15 13:23:44 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-15 13:25:02 +0100
commitef51988ab287c86c2a324271eebf85a68979ac46 (patch)
treea1649effe6921aa91765a1749d2158536d014465 /tests/gem_bad_reloc.c
parent465793bfd185062cfaee1b0dd3abf98ce5218333 (diff)
igt/gem_bad_reloc: Restrict negative reloc tests to IVB+
The bug doesn't seem to occur on SNB, so we can skip the workaround and hence we do not expect the kernel to prevent invalid relocated offsets. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_bad_reloc.c')
-rw-r--r--tests/gem_bad_reloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_bad_reloc.c b/tests/gem_bad_reloc.c
index 63bde6c1..a2427c03 100644
--- a/tests/gem_bad_reloc.c
+++ b/tests/gem_bad_reloc.c
@@ -57,6 +57,8 @@ static int negative_reloc(int fd, unsigned flags)
uint32_t buf[1024] = {MI_BATCH_BUFFER_END};
int i;
+ igt_require(intel_gen(intel_get_drm_devid(fd)) >= 7);
+
memset(&gem_exec, 0, sizeof(gem_exec));
gem_exec.handle = gem_create(fd, 4096);
gem_write(fd, gem_exec.handle, 0, buf, 8);