Lines Matching defs:batch

1439                                        struct anv_batch *batch);
1511 /* Bytes actually consumed in this batch BO */
1514 /* When this batch BO is used as part of a primary batch buffer, this
1515 * tracked whether it is chained to another primary batch buffer.
1518 * location of the MI_BATCH_BUFFER_START chaining to the next batch.
1537 * that the batch runs out of space.
1546 * batch because the command buffer object is not visible to some parts
1552 void *anv_batch_emit_dwords(struct anv_batch *batch, int num_dwords);
1553 void anv_batch_emit_batch(struct anv_batch *batch, struct anv_batch *other);
1554 struct anv_address anv_batch_address(struct anv_batch *batch, void *batch_location);
1557 anv_batch_set_storage(struct anv_batch *batch, struct anv_address addr,
1560 batch->start_addr = addr;
1561 batch->next = batch->start = map;
1562 batch->end = map + size;
1566 anv_batch_set_error(struct anv_batch *batch, VkResult error)
1569 if (batch->status == VK_SUCCESS)
1570 batch->status = error;
1571 return batch->status;
1575 anv_batch_has_error(struct anv_batch *batch)
1577 return batch->status != VK_SUCCESS;
1581 anv_batch_emit_reloc(struct anv_batch *batch,
1589 result = anv_reloc_list_add_bo(batch->relocs, batch->alloc, bo);
1591 result = anv_reloc_list_add(batch->relocs, batch->alloc,
1592 location - batch->start, bo, delta,
1596 anv_batch_set_error(batch, result);
1620 _anv_combine_address(struct anv_batch *batch, void *location,
1625 } else if (batch == NULL) {
1629 assert(batch->start <= location && location < batch->end);
1632 return anv_batch_emit_reloc(batch, location, address.bo, address.offset + delta);
1660 #define anv_batch_emitn(batch, n, cmd, ...) ({ \
1661 void *__dst = anv_batch_emit_dwords(batch, n); \
1668 __anv_cmd_pack(cmd)(batch, __dst, &__template); \
1673 #define anv_batch_emit_merge(batch, dwords0, dwords1) \
1678 dw = anv_batch_emit_dwords((batch), ARRAY_SIZE(dwords0)); \
1686 #define anv_batch_emit(batch, cmd, name) \
1688 *_dst = anv_batch_emit_dwords(batch, __anv_cmd_length(cmd)); \
1690 ({ __anv_cmd_pack(cmd)(batch, _dst, &name); \
1695 #define anv_batch_write_reg(batch, reg, name) \
1701 anv_batch_emit(batch, GENX(MI_LOAD_REGISTER_IMM), lri) { \
2811 struct anv_batch batch;
2813 /* Pointer to the location in the batch where MI_BATCH_BUFFER_END was
2815 * rewrite the end to chain multiple batch together at vkQueueSubmit().
2826 /* A vector of anv_batch_bo pointers for every batch or surface buffer
2892 * softpin and we also need to make sure that we can edit the end of the batch
3096 struct anv_batch batch;
4182 struct anv_batch *batch;
4196 struct anv_batch batch;
4202 /* Syncobj to be signaled when the batch completes */