Skip to content

va: allocator: redesign API and data flow

Since the introduction of pooled allocators (!1626 (merged)) the API for allocators didn't make sense since it was based per memory, and now they have to keep the state of already pooled buffers.

These commits are code cleanups and a big change to add _set_format() and _get_format() methods for allocators and keeping the state of the already allocated buffers. This makes faster the allocation, since the video info is kept in the allocator and not in each buffer. But that also showed up a race condition, fixed with the preallocation of buffers as was before.

Merge request reports