Lines Matching defs:batch
50 { "batch", INTEL_MEASURE_BATCH },
83 /* default batch_size allows for 64k renders in a single batch */
210 fputs("draw_start,draw_end,frame,batch,"
263 * - after a batch is submitted
269 intel_measure_state_changed(const struct intel_measure_batch *batch,
273 if (batch->index == 0) {
279 &batch->snapshots[batch->index - 1];
284 if (batch->index % 2 == 0) {
290 /* only start collection when index == 0, at the beginning of a batch */
295 return ((last_snap->framebuffer != batch->framebuffer) ||
383 * Verify that rendering has completed for the batch
388 intel_measure_ready(struct intel_measure_batch *batch)
390 assert(batch->timestamps);
391 assert(batch->index > 1);
392 return (batch->timestamps[batch->index - 1] != 0);
404 struct intel_measure_batch *batch)
408 uint64_t *timestamps = batch->timestamps;
410 assert(batch->index == 0 || timestamps[0] != 0);
412 for (int i = 0; i < batch->index; i += 2) {
413 const struct intel_measure_snapshot *begin = &batch->snapshots[i];
414 const struct intel_measure_snapshot *end = &batch->snapshots[i+1];
420 begin->secondary->batch_count = batch->batch_count;
453 buffered_result->frame = batch->frame;
454 buffered_result->batch_count = batch->batch_count;
512 * crosses a batch boundary, then the next interval starts with the new
513 * batch.
536 * transition, so the following line of output begins with the batch
643 * in-order, but we must determine which queue has the oldest batch.
647 struct intel_measure_batch *batch =
651 if (!intel_measure_ready(batch)) {
658 list_del(&batch->link);
659 assert(batch->index % 2 == 0);
661 intel_measure_push_result(measure_device, batch);
663 batch->index = 0;
664 batch->frame = 0;
666 measure_device->release_batch(batch);