2 * SPDX-License-Identifier: MIT
4 * Copyright © 2018 Intel Corporation
7 #ifndef __IGT_GEM_UTILS_H__
8 #define __IGT_GEM_UTILS_H__
10 #include <linux/types.h>
15 struct i915_gem_context;
19 struct intel_engine_cs;
22 igt_request_alloc(struct i915_gem_context *ctx, struct intel_engine_cs *engine);
25 igt_emit_store_dw(struct i915_vma *vma,
30 int igt_gpu_fill_dw(struct intel_context *ce,
31 struct i915_vma *vma, u64 offset,
32 unsigned long count, u32 val);
34 static inline int __must_check
35 igt_vma_move_to_active_unlocked(struct i915_vma *vma, struct i915_request *rq,
41 err = i915_vma_move_to_active(vma, rq, flags);
46 #endif /* __IGT_GEM_UTILS_H__ */