1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __I915_GEM_OBJECT_BLT_H__
7 #define __I915_GEM_OBJECT_BLT_H__
8 
9 #include <linux/types.h>
10 
11 #include "gt/intel_context.h"
12 #include "gt/intel_engine_pm.h"
13 #include "i915_vma.h"
14 
15 struct drm_i915_gem_object;
16 struct i915_gem_ww_ctx;
17 
18 struct i915_vma *intel_emit_vma_fill_blt(struct intel_context *ce,
19 					 struct i915_vma *vma,
20 					 struct i915_gem_ww_ctx *ww,
21 					 u32 value);
22 
23 struct i915_vma *intel_emit_vma_copy_blt(struct intel_context *ce,
24 					 struct i915_gem_ww_ctx *ww,
25 					 struct i915_vma *src,
26 					 struct i915_vma *dst);
27 
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);
30 
31 int i915_gem_object_fill_blt(struct drm_i915_gem_object *obj,
32 			     struct intel_context *ce,
33 			     u32 value);
34 
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);
38 
39 #endif
40