diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-03 19:13:16 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-03 19:13:16 +0300 |
commit | dc46b778d84cdcdb36a648189d74cda58e5f7833 (patch) | |
tree | 7f5a59ef21f7be04d2e00b3f5e956b1e121df4c9 /lib/rendercopy_gen7.c | |
parent | 9b3f41a6c6da7d767516a93dccf17469a551e942 (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_gen7.c')
-rw-r--r-- | lib/rendercopy_gen7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rendercopy_gen7.c b/lib/rendercopy_gen7.c index bdcf3c7b..706d6276 100644 --- a/lib/rendercopy_gen7.c +++ b/lib/rendercopy_gen7.c @@ -90,7 +90,7 @@ gen7_bind_buf(struct intel_batchbuffer *batch, ss[7] |= HSW_SURFACE_SWIZZLE(RED, GREEN, BLUE, ALPHA); ret = drm_intel_bo_emit_reloc(batch->bo, - intel_batchbuffer_subdata_offset(batch, ss) + 4, + intel_batchbuffer_subdata_offset(batch, &ss[1]), buf->bo, 0, read_domain, write_domain); igt_assert(ret == 0); |