Name

i915_gem_batch_pool_get — select a buffer from the pool

Synopsis

struct drm_i915_gem_object * i915_gem_batch_pool_get (struct i915_gem_batch_pool * pool,
 size_t size);
 

Arguments

pool

the batch buffer pool

size

the minimum desired size of the returned buffer

Description

Finds or allocates a batch buffer in the pool with at least the requested size. The caller is responsible for any domain, active/inactive, or purgeability management for the returned buffer.

Note

Callers must hold the struct_mutex

Return

the selected batch buffer object