Home | History | Annotate | Line # | Download | only in selftests
      1 /*	$NetBSD: igt_gem_utils.h,v 1.2 2021/12/18 23:45:30 riastradh Exp $	*/
      2 
      3 /*
      4  * SPDX-License-Identifier: MIT
      5  *
      6  * Copyright  2018 Intel Corporation
      7  */
      8 
      9 #ifndef __IGT_GEM_UTILS_H__
     10 #define __IGT_GEM_UTILS_H__
     11 
     12 #include <linux/types.h>
     13 
     14 struct i915_request;
     15 struct i915_gem_context;
     16 struct i915_vma;
     17 
     18 struct intel_context;
     19 struct intel_engine_cs;
     20 
     21 struct i915_request *
     22 igt_request_alloc(struct i915_gem_context *ctx, struct intel_engine_cs *engine);
     23 
     24 struct i915_vma *
     25 igt_emit_store_dw(struct i915_vma *vma,
     26 		  u64 offset,
     27 		  unsigned long count,
     28 		  u32 val);
     29 
     30 int igt_gpu_fill_dw(struct intel_context *ce,
     31 		    struct i915_vma *vma, u64 offset,
     32 		    unsigned long count, u32 val);
     33 
     34 #endif /* __IGT_GEM_UTILS_H__ */
     35