criu/plugins
Tvrtko Ursulin f34388104e plugins/amdgpu: Reuse the userptr backing store when possible
When saving buffer object content the current code constantly allocates
and frees aligned memory where the GPU will copy each buffer one by one.
We can optimise this path by keeping the buffer around and only grow it if
is too small for the current object.

While doing this we also fix a theoretically incorrect freeing of memory
allocated via posix_memalign with xfree.

An alternative solution could be to probe for the maximum size before hand
by adding a pre-scan loop.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
2026-06-20 23:38:16 -07:00
..
amdgpu plugins/amdgpu: Reuse the userptr backing store when possible 2026-06-20 23:38:16 -07:00
cuda amdgpu: use fseeko with large-file support instead of fseeko64 2026-01-08 07:48:23 -08:00