Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gem / i915_gem_object_blt.h
blob2409fdcccf0ed2d38e8106bd0a4e180dd09f1af7
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Copyright © 2019 Intel Corporation
4 */
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"
13 #include "i915_vma.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,
19 struct i915_vma *vma,
20 struct i915_gem_ww_ctx *ww,
21 u32 value);
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);
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,
33 u32 value);
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);
39 #endif