summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-03-05 11:09:46 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-03-05 11:10:18 +0000
commita3b80912a993b4b6952917afea41906f88dda01e (patch)
tree61023936480a33b01f13e93eaadb86b29afbfd24 /tests
parent072d358bf03d0c39dc83bce0b93801d030d2324f (diff)
igt/gem_pwrite_pread: Fix relocation offsets for gen8+
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75237 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_pwrite_pread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_pwrite_pread.c b/tests/gem_pwrite_pread.c
index 64952b7f..00eaa558 100644
--- a/tests/gem_pwrite_pread.c
+++ b/tests/gem_pwrite_pread.c
@@ -84,7 +84,7 @@ static void copy(int fd, uint32_t src, uint32_t dst, void *buf, int len, int loo
struct drm_i915_gem_relocation_entry reloc[] = {
{ dst, 0, 4*sizeof(uint32_t), 0, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER },
- { src, 0, 7*sizeof(uint32_t), 0, I915_GEM_DOMAIN_RENDER, 0 },
+ { src, 0, (is_64bit ? 8 : 7)*sizeof(uint32_t), 0, I915_GEM_DOMAIN_RENDER, 0 },
};
struct drm_i915_gem_exec_object2 exec[] = {
{ src },