mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
![Chris Wilson](/assets/img/avatar_default.png)
For convenience in avoiding inline spaghetti, keep the type definition as a separate header. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190528092956.14910-1-chris@chris-wilson.co.uk
26 lines
634 B
C
26 lines
634 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 drm_i915_gem_object;
|
|
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 */
|