root/drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * SPDX-License-Identifier: MIT
   3  *
   4  * Copyright © 2018 Intel Corporation
   5  */
   6 
   7 #ifndef __IGT_GEM_UTILS_H__
   8 #define __IGT_GEM_UTILS_H__
   9 
  10 #include <linux/types.h>
  11 
  12 struct i915_request;
  13 struct i915_gem_context;
  14 struct intel_engine_cs;
  15 struct i915_vma;
  16 
  17 struct i915_request *
  18 igt_request_alloc(struct i915_gem_context *ctx, struct intel_engine_cs *engine);
  19 
  20 struct i915_vma *
  21 igt_emit_store_dw(struct i915_vma *vma,
  22                   u64 offset,
  23                   unsigned long count,
  24                   u32 val);
  25 
  26 int igt_gpu_fill_dw(struct i915_vma *vma,
  27                     struct i915_gem_context *ctx,
  28                     struct intel_engine_cs *engine,
  29                     u64 offset,
  30                     unsigned long count,
  31                     u32 val);
  32 
  33 #endif /* __IGT_GEM_UTILS_H__ */

/* [<][>][^][v][top][bottom][index][help] */