2019-05-29 12:31:08 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2019 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __I915_GEM_OBJECT_BLT_H__
|
|
|
|
#define __I915_GEM_OBJECT_BLT_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2019-08-10 09:29:45 +00:00
|
|
|
#include "gt/intel_context.h"
|
|
|
|
#include "gt/intel_engine_pm.h"
|
|
|
|
#include "gt/intel_engine_pool.h"
|
|
|
|
#include "i915_vma.h"
|
|
|
|
|
2019-05-29 12:31:08 +00:00
|
|
|
struct drm_i915_gem_object;
|
|
|
|
|
2019-08-10 09:29:45 +00:00
|
|
|
struct i915_vma *intel_emit_vma_fill_blt(struct intel_context *ce,
|
|
|
|
struct i915_vma *vma,
|
|
|
|
u32 value);
|
|
|
|
|
2019-08-10 17:43:38 +00:00
|
|
|
struct i915_vma *intel_emit_vma_copy_blt(struct intel_context *ce,
|
|
|
|
struct i915_vma *src,
|
|
|
|
struct i915_vma *dst);
|
|
|
|
|
2019-08-10 09:29:45 +00:00
|
|
|
int intel_emit_vma_mark_active(struct i915_vma *vma, struct i915_request *rq);
|
|
|
|
void intel_emit_vma_release(struct intel_context *ce, struct i915_vma *vma);
|
2019-05-29 12:31:08 +00:00
|
|
|
|
|
|
|
int i915_gem_object_fill_blt(struct drm_i915_gem_object *obj,
|
|
|
|
struct intel_context *ce,
|
|
|
|
u32 value);
|
|
|
|
|
2019-08-10 17:43:38 +00:00
|
|
|
int i915_gem_object_copy_blt(struct drm_i915_gem_object *src,
|
|
|
|
struct drm_i915_gem_object *dst,
|
|
|
|
struct intel_context *ce);
|
|
|
|
|
2019-05-29 12:31:08 +00:00
|
|
|
#endif
|