Lines Matching defs:batch
43 struct iris_measure_batch *batch =
45 iris_destroy_batch_measure(batch);
100 iris_init_batch_measure(struct iris_context *ice, struct iris_batch *batch)
103 struct iris_screen *screen = batch->screen;
115 assert(batch->measure == NULL);
116 batch->measure = malloc(batch_bytes);
117 memset(batch->measure, 0, batch_bytes);
118 struct iris_measure_batch *measure = batch->measure;
130 iris_destroy_batch_measure(struct iris_measure_batch *batch)
132 if (!batch)
134 iris_bo_unmap(batch->bo);
135 iris_bo_unreference(batch->bo);
136 batch->bo = NULL;
137 free(batch);
142 struct iris_batch *batch,
147 struct intel_measure_batch *measure_batch = &batch->measure->base;
161 /* Snapshot buffer is full. The batch must be flushed before additional
167 "WARNING: batch size exceeds INTEL_MEASURE limit: %d. "
178 iris_emit_pipe_control_write(batch, "measurement snapshot",
181 batch->measure->bo, index * sizeof(uint64_t), 0ull);
205 measure_end_snapshot(struct iris_batch *batch,
208 struct intel_measure_batch *measure_batch = &batch->measure->base;
213 iris_emit_pipe_control_write(batch, "measurement snapshot",
216 batch->measure->bo,
227 const struct iris_batch *batch,
243 return intel_measure_state_changed(&batch->measure->base,
251 struct intel_measure_batch *batch =
258 if (framebuffer_crc == batch->framebuffer)
261 if (filtering && batch->index % 2 == 1) {
264 batch->event_count);
265 batch->event_count = 0;
268 batch->framebuffer = framebuffer_crc;
273 struct iris_batch *batch,
281 struct intel_measure_batch* measure_batch = &batch->measure->base;
292 if (!state_changed(ice, batch, type)) {
304 measure_end_snapshot(batch, measure_batch->event_count - 1);
331 measure_start_snapshot(ice, batch, type, event_name, count);
347 iris_measure_batch_end(struct iris_context *ice, struct iris_batch *batch)
351 struct iris_measure_batch *iris_measure_batch = batch->measure;
367 /* We hit the end of the batch, but never terminated our section of
370 measure_end_snapshot(batch, measure_batch->event_count);
379 batch->measure = NULL;
382 iris_init_batch_measure(ice, batch);