diff options
author | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2021-06-30 05:14:16 +0200 |
---|---|---|
committer | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2021-08-10 21:02:50 +0200 |
commit | abfbde8d8aee278b372ddb9eb6287f964df0838c (patch) | |
tree | 4eb99197e961ff989030a46f1eeedcd6065b28bd /lib/intel_batchbuffer.h | |
parent | d55084b475a543d99a826307efcb55fba22807db (diff) |
lib/intel_batchbuffer: Add allocator support in blitter fast copy
For newer gens kernel will reject relocations by returning -EINVAL
so we should support allocator and acquire offsets for blit.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r-- | lib/intel_batchbuffer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index bd417e99..74c21c40 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -300,12 +300,15 @@ void igt_blitter_fast_copy(struct intel_batchbuffer *batch, unsigned dst_x, unsigned dst_y); void igt_blitter_fast_copy__raw(int fd, + uint64_t ahnd, + uint32_t ctx, /* src */ uint32_t src_handle, unsigned int src_delta, unsigned int src_stride, unsigned int src_tiling, unsigned int src_x, unsigned src_y, + uint64_t src_size, /* size */ unsigned int width, unsigned int height, @@ -318,7 +321,8 @@ void igt_blitter_fast_copy__raw(int fd, unsigned int dst_delta, unsigned int dst_stride, unsigned int dst_tiling, - unsigned int dst_x, unsigned dst_y); + unsigned int dst_x, unsigned dst_y, + uint64_t dst_size); /** * igt_render_copyfunc_t: |