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>
This commit is contained in:
Chris Wilson 2014-03-05 11:09:46 +00:00
parent 072d358bf0
commit a3b80912a9

View File

@ -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 },