Lines Matching defs:batch

40                          struct panvk_batch *batch,
50 /* Reset the batch if it's already been issued */
51 if (batch->issued) {
52 util_dynarray_foreach(&batch->jobs, void *, job)
55 /* Reset the tiler before re-issuing the batch */
56 if (batch->tiler.descs.cpu) {
57 memcpy(batch->tiler.descs.cpu, batch->tiler.templ,
62 if (batch->scoreboard.first_job) {
69 .jc = batch->scoreboard.first_job,
81 GENX(pandecode_jc)(batch->scoreboard.first_job, pdev->gpu_id);
87 if (batch->fragment_job) {
92 .jc = batch->fragment_job,
96 if (batch->scoreboard.first_job) {
112 GENX(pandecode_jc)(batch->fragment_job, pdev->gpu_id);
121 batch->issued = true;
148 panvk_add_wait_event_syncobjs(struct panvk_batch *batch, uint32_t *in_fences, unsigned *nr_in_fences)
150 util_dynarray_foreach(&batch->event_ops, struct panvk_event_op, op) {
168 panvk_signal_event_syncobjs(struct panvk_queue *queue, struct panvk_batch *batch)
172 util_dynarray_foreach(&batch->event_ops, struct panvk_event_op, op) {
223 list_for_each_entry(struct panvk_batch, batch, &cmdbuf->batches, node) {
224 /* FIXME: should be done at the batch level */
229 (batch->fb.info ? batch->fb.info->attachment_count : 0) +
230 (batch->blit.src ? 1 : 0) +
231 (batch->blit.dst ? 1 : 0) +
232 (batch->scoreboard.first_tiler ? 1 : 0) + 1;
245 if (batch->fb.info) {
246 for (unsigned i = 0; i < batch->fb.info->attachment_count; i++) {
247 bos[bo_idx++] = batch->fb.info->attachments[i].iview->pview.image->data.bo->gem_handle;
251 if (batch->blit.src)
252 bos[bo_idx++] = batch->blit.src->gem_handle;
254 if (batch->blit.dst)
255 bos[bo_idx++] = batch->blit.dst->gem_handle;
257 if (batch->scoreboard.first_tiler)
275 util_dynarray_num_elements(&batch->event_ops,
281 panvk_add_wait_event_syncobjs(batch, in_fences, &nr_in_fences);
283 panvk_queue_submit_batch(queue, batch, bos, nr_bos, in_fences, nr_in_fences);
285 panvk_signal_event_syncobjs(queue, batch);