summaryrefslogtreecommitdiff
path: root/lib/rendercopy_gen8.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-07-03 19:13:16 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-07-03 19:13:16 +0300
commitdc46b778d84cdcdb36a648189d74cda58e5f7833 (patch)
tree7f5a59ef21f7be04d2e00b3f5e956b1e121df4c9 /lib/rendercopy_gen8.c
parent9b3f41a6c6da7d767516a93dccf17469a551e942 (diff)
lib/rendercopy: Simplify reloc offsets
Remove the hardcoded dword offsets for the relocs and instead rely fully on intel_batchbuffer_subdata_offset(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/rendercopy_gen8.c')
-rw-r--r--lib/rendercopy_gen8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c
index 7dd7cc47..90b2730b 100644
--- a/lib/rendercopy_gen8.c
+++ b/lib/rendercopy_gen8.c
@@ -175,7 +175,7 @@ gen8_bind_buf(struct intel_batchbuffer *batch,
ss->ss8.base_addr = buf->bo->offset;
ret = drm_intel_bo_emit_reloc(batch->bo,
- intel_batchbuffer_subdata_offset(batch, ss) + 8 * 4,
+ intel_batchbuffer_subdata_offset(batch, &ss->ss8),
buf->bo, 0,
read_domain, write_domain);
igt_assert(ret == 0);