1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2019 Intel Corporation
6 #ifndef __I915_GEM_OBJECT_BLT_H__
7 #define __I915_GEM_OBJECT_BLT_H__
9 #include <linux/types.h>
11 #include "gt/intel_context.h"
12 #include "gt/intel_engine_pm.h"
15 struct drm_i915_gem_object
;
16 struct i915_gem_ww_ctx
;
18 struct i915_vma
*intel_emit_vma_fill_blt(struct intel_context
*ce
,
20 struct i915_gem_ww_ctx
*ww
,
23 struct i915_vma
*intel_emit_vma_copy_blt(struct intel_context
*ce
,
24 struct i915_gem_ww_ctx
*ww
,
26 struct i915_vma
*dst
);
28 int intel_emit_vma_mark_active(struct i915_vma
*vma
, struct i915_request
*rq
);
29 void intel_emit_vma_release(struct intel_context
*ce
, struct i915_vma
*vma
);
31 int i915_gem_object_fill_blt(struct drm_i915_gem_object
*obj
,
32 struct intel_context
*ce
,
35 int i915_gem_object_copy_blt(struct drm_i915_gem_object
*src
,
36 struct drm_i915_gem_object
*dst
,
37 struct intel_context
*ce
);