2015-04-07 23:20:34 +08:00
|
|
|
/*
|
2018-03-08 17:50:35 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2015-04-07 23:20:34 +08:00
|
|
|
*
|
2018-03-08 17:50:35 +08:00
|
|
|
* Copyright © 2014-2018 Intel Corporation
|
2015-04-07 23:20:34 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef I915_GEM_BATCH_POOL_H
|
|
|
|
#define I915_GEM_BATCH_POOL_H
|
|
|
|
|
2018-03-08 17:50:35 +08:00
|
|
|
#include <linux/types.h>
|
2015-04-07 23:20:34 +08:00
|
|
|
|
2016-08-04 23:32:19 +08:00
|
|
|
struct intel_engine_cs;
|
|
|
|
|
2015-04-07 23:20:34 +08:00
|
|
|
struct i915_gem_batch_pool {
|
2016-08-04 23:32:19 +08:00
|
|
|
struct intel_engine_cs *engine;
|
2015-04-07 23:20:38 +08:00
|
|
|
struct list_head cache_list[4];
|
2015-04-07 23:20:34 +08:00
|
|
|
};
|
|
|
|
|
2018-03-08 17:50:35 +08:00
|
|
|
void i915_gem_batch_pool_init(struct i915_gem_batch_pool *pool,
|
|
|
|
struct intel_engine_cs *engine);
|
2015-04-07 23:20:34 +08:00
|
|
|
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 */
|