chaining to a new batch reuses create_batch(), but we don't need to do
the work of pinning BOs we inherit from a previous batch...when that is
actually part of the same execbuf invocation.
instead, just flag it when setting primary_batch_size = 0, in
iris_batch_reset
batch->bo->kflags |= EXEC_OBJECT_CAPTURE;
batch->map = iris_bo_map(NULL, batch->bo, MAP_READ | MAP_WRITE);
batch->map_next = batch->map;
- batch->contains_draw = false;
add_exec_bo(batch, batch->bo);
}
}
batch->last_bo = batch->bo;
batch->primary_batch_size = 0;
+ batch->contains_draw = false;
create_batch(batch);
assert(batch->bo->index == 0);