[igt-dev] [PATCH i-g-t 0/1] lib/intel_batchbuffer: reset allocator before subtest

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri Jan 28 13:02:02 UTC 2022


igt_core inits intel_allocator before next subtest and this
makes allocator handle keeped in intel_batchbuffer invalid.
Moreover any call to intel_allocator can result in fail as
there are no allocators until first allocator_open.

Reset allocator in intel_batchbuffer and recreate its offsets
before next subtest run.

Kamil Konieczny (1):
  lib/intel_batchbuffer: add tracking and reset for allocator

 lib/igt_core.c          |  2 ++
 lib/intel_batchbuffer.c | 38 ++++++++++++++++++++++++++++++++++++++
 lib/intel_batchbuffer.h |  6 ++++++
 3 files changed, 46 insertions(+)

-- 
2.32.0



More information about the igt-dev mailing list