75b974a859
Avoid having to pass around (ctx, engine) everywhere by passing the actual intel_context we intend to use. Today we preach this lesson to igt_gpu_fill_dw and its callers' callers. The immediate benefit for the GEM selftests is that we aim to use the GEM context as the control, the source of the engines on which to test the GEM context. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190823235141.31799-1-chris@chris-wilson.co.uk
33 lines
651 B
C
33 lines
651 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright © 2018 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __IGT_GEM_UTILS_H__
|
|
#define __IGT_GEM_UTILS_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct i915_request;
|
|
struct i915_gem_context;
|
|
struct i915_vma;
|
|
|
|
struct intel_context;
|
|
struct intel_engine_cs;
|
|
|
|
struct i915_request *
|
|
igt_request_alloc(struct i915_gem_context *ctx, struct intel_engine_cs *engine);
|
|
|
|
struct i915_vma *
|
|
igt_emit_store_dw(struct i915_vma *vma,
|
|
u64 offset,
|
|
unsigned long count,
|
|
u32 val);
|
|
|
|
int igt_gpu_fill_dw(struct intel_context *ce,
|
|
struct i915_vma *vma, u64 offset,
|
|
unsigned long count, u32 val);
|
|
|
|
#endif /* __IGT_GEM_UTILS_H__ */
|