Lines Matching defs:batch
72 * Called from the batch module when it detects a GPU hang.
79 crocus_lost_context_state(struct crocus_batch *batch)
81 /* The batch module doesn't have an crocus_context, because we want to
83 * we do need to inform the context of batch catastrophe. We know the
84 * batch is one of our context's, so hackily claw our way back.
86 struct crocus_context *ice = batch->ice;
87 struct crocus_screen *screen = batch->screen;
88 if (batch->name == CROCUS_BATCH_RENDER) {
89 screen->vtbl.init_render_context(batch);
90 } else if (batch->name == CROCUS_BATCH_COMPUTE) {
91 screen->vtbl.init_compute_context(batch);
93 unreachable("unhandled batch reset");
98 batch->state_base_address_emitted = false;
99 screen->vtbl.lost_genx_state(ice, batch);
109 /* Check the reset status of each batch's hardware context, and take the