diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-03-03 14:11:00 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2015-03-12 14:20:10 +0000 |
commit | 672e88acb72bf58f322af928b2bc636d14aa9f21 (patch) | |
tree | 81676401064fe97aa91d184ec453eaeb7aeed83d /lib/intel_batchbuffer.h | |
parent | 6533d113a9710429115bee26d1f372e1a06701df (diff) |
lib: Provide a raw version of the gen9 fast copy blits
So we can use it with bare kernel types, without going through libdrm
bos.
v2: Don't forget the object handle. (Tvrtko)
Correct surface pitch calculation. (Tvrtko)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.h')
-rw-r--r-- | lib/intel_batchbuffer.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/intel_batchbuffer.h b/lib/intel_batchbuffer.h index 00d63b7d..c90b5e7d 100644 --- a/lib/intel_batchbuffer.h +++ b/lib/intel_batchbuffer.h @@ -3,6 +3,8 @@ #include <stdint.h> #include <intel_bufmgr.h> +#include <i915_drm.h> + #include "igt_core.h" #include "intel_reg.h" @@ -227,6 +229,22 @@ void igt_blitter_fast_copy(struct intel_batchbuffer *batch, unsigned width, unsigned height, struct igt_buf *dst, unsigned dst_x, unsigned dst_y); +void igt_blitter_fast_copy__raw(int fd, + /* src */ + uint32_t src_handle, + unsigned int src_stride, + unsigned int src_tiling, + unsigned int src_x, unsigned src_y, + + /* size */ + unsigned int width, unsigned int height, + + /* dst */ + uint32_t dst_handle, + unsigned int dst_stride, + unsigned int dst_tiling, + unsigned int dst_x, unsigned dst_y); + /** * igt_render_copyfunc_t: * @batch: batchbuffer object |