forked from Minki/linux
c578135145
Function i915_gem_batch_pool_init() failed to follow obj-verb naming schema. Fix that by swapping function parameters. While here, change license text to SPDX format. v2: use intel_engine_init_batch_pool (Chris) as proxy (Michal) Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20180308095037.18264-3-michal.wajdeczko@intel.com
26 lines
605 B
C
26 lines
605 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright © 2014-2018 Intel Corporation
|
|
*/
|
|
|
|
#ifndef I915_GEM_BATCH_POOL_H
|
|
#define I915_GEM_BATCH_POOL_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct intel_engine_cs;
|
|
|
|
struct i915_gem_batch_pool {
|
|
struct intel_engine_cs *engine;
|
|
struct list_head cache_list[4];
|
|
};
|
|
|
|
void i915_gem_batch_pool_init(struct i915_gem_batch_pool *pool,
|
|
struct intel_engine_cs *engine);
|
|
void i915_gem_batch_pool_fini(struct i915_gem_batch_pool *pool);
|
|
struct drm_i915_gem_object*
|
|
i915_gem_batch_pool_get(struct i915_gem_batch_pool *pool, size_t size);
|
|
|
|
#endif /* I915_GEM_BATCH_POOL_H */
|