diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2021-07-20 12:01:11 +0200 |
---|---|---|
committer | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2021-08-10 21:02:50 +0200 |
commit | ad3ad1ebab84ff5d02b23abdd8ca2025ec5a5e9a (patch) | |
tree | 0da326924577308d9986a32d7d644496aab2772a /lib/intel_batchbuffer.h | |
parent | cbdf3b1d3acc14da497259e6e8f6e0fd0632d8fd (diff) |
lib/huc_copy: Extend huc copy prototype to pass allocator handle
For testing gem_huc_copy on no-reloc platforms we need to pass
allocator handle and object sizes to properly acquire offsets from
allocator.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r-- | lib/intel_batchbuffer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index c1974fe7..0839d761 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -679,10 +679,12 @@ void intel_bb_copy_intel_buf(struct intel_bb *ibb, /** * igt_huc_copyfunc_t: * @fd: drm fd + * @ahnd: allocator handle, if it is equal to 0 we use relocations * @obj: drm_i915_gem_exec_object2 buffer array * obj[0] is source buffer * obj[1] is destination buffer * obj[2] is execution buffer + * @objsize: corresponding buffer sizes to @obj * * This is the type of the per-platform huc copy functions. * @@ -690,8 +692,8 @@ void intel_bb_copy_intel_buf(struct intel_bb *ibb, * invoke the HuC Copy kernel to copy 4K bytes from the source buffer * to the destination buffer. */ -typedef void (*igt_huc_copyfunc_t)(int fd, - struct drm_i915_gem_exec_object2 *obj); +typedef void (*igt_huc_copyfunc_t)(int fd, uint64_t ahnd, + struct drm_i915_gem_exec_object2 *obj, uint64_t *objsize); igt_huc_copyfunc_t igt_get_huc_copyfunc(int devid); #endif |