i915_gem_batch_pool.h 605 B

12345678910111213141516171819202122232425
  1. /*
  2. * SPDX-License-Identifier: MIT
  3. *
  4. * Copyright © 2014-2018 Intel Corporation
  5. */
  6. #ifndef I915_GEM_BATCH_POOL_H
  7. #define I915_GEM_BATCH_POOL_H
  8. #include <linux/types.h>
  9. struct intel_engine_cs;
  10. struct i915_gem_batch_pool {
  11. struct intel_engine_cs *engine;
  12. struct list_head cache_list[4];
  13. };
  14. void i915_gem_batch_pool_init(struct i915_gem_batch_pool *pool,
  15. struct intel_engine_cs *engine);
  16. void i915_gem_batch_pool_fini(struct i915_gem_batch_pool *pool);
  17. struct drm_i915_gem_object*
  18. i915_gem_batch_pool_get(struct i915_gem_batch_pool *pool, size_t size);
  19. #endif /* I915_GEM_BATCH_POOL_H */