Skip to content

lib/intel_batchbuffer: reset allocator before subtest

Kamil Konieczny igt-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 1 replyIn review
  2. v21 patch 1 replySuperseded
  3. v11 patch 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1lib/intel_batchbuffer: add tracking and reset for allocatorlib/igt_core.c lib/intel_batchbuffer.c lib/intel_batchbuffer.h+81 -01 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchZbigniew Kempczyński
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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

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.

Add flag for turn on tracking with default off and helper for turning it on/off. It will not change behaviour of already used tests.

v2: add flag for tracking with default off (Zbigniew review)
v3: add and correct functions descriptions (Zbigniew)

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

 lib/igt_core.c          |  2 ++
 lib/intel_batchbuffer.c | 72 +++++++++++++++++++++++++++++++++++++++++
 lib/intel_batchbuffer.h |  7 ++++
 3 files changed, 81 insertions(+)
Signature · 1 line
2.32.0