mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
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>
This commit is contained in:
parent
465793bfd1
commit
ef51988ab2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user