projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
465793b
)
igt/gem_bad_reloc: Restrict negative reloc tests to IVB+
author
Chris Wilson
<chris@chris-wilson.co.uk>
Thu, 15 May 2014 12:23:44 +0000
(13:23 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Thu, 15 May 2014 12:25:02 +0000
(13:25 +0100)
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>
tests/gem_bad_reloc.c
patch
|
blob
|
history
diff --git
a/tests/gem_bad_reloc.c
b/tests/gem_bad_reloc.c
index
63bde6c
..
a2427c0
100644
(file)
--- 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);