mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 22:36:24 +00:00
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:
parent
072d358bf0
commit
a3b80912a9
@ -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 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user