summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-11-07 23:03:04 -0800
committerBen Widawsky <benjamin.widawsky@intel.com>2013-11-07 23:06:01 -0800
commitffc43fcbc0bcd4f7b15afa204723876e258e4bc4 (patch)
treeae132444ea8706f2e5e94fc37608c5dbc55ac93d
parent2c0fc4a2e43e4b7f1a5aacca37943f5259da4094 (diff)
gem_cpu_reloc: Fixed botched BLIT conversion
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
-rw-r--r--tests/gem_cpu_reloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_cpu_reloc.c b/tests/gem_cpu_reloc.c
index 2ab1d09e..773b15a5 100644
--- a/tests/gem_cpu_reloc.c
+++ b/tests/gem_cpu_reloc.c
@@ -76,8 +76,8 @@ static void copy(int fd, uint32_t batch, uint32_t src, uint32_t dst)
gem_reloc[0].presumed_offset = 0;
gem_reloc[1].offset = 7 * sizeof(uint32_t);
- if (intel_get_drm_devid(fd) >= 8)
- gem_reloc[1].offset += sizeof(uint32_t);
+ if (intel_gen(intel_get_drm_devid(fd) >= 8))
+ gem_reloc[1].offset += sizeof(uint32_t);
gem_reloc[1].delta = 0;
gem_reloc[1].target_handle = src;
gem_reloc[1].read_domains = I915_GEM_DOMAIN_RENDER;