struct intel_measure_device *measure_device = &device->measure_device;
struct intel_measure_config *config = config_from_command_buffer(cmd_buffer);
- const unsigned device_frame = measure_device->frame;
-
- /* if the command buffer is not associated with a frame, associate it with
- * the most recent acquired frame
- */
- if (measure->base.frame == 0)
- measure->base.frame = device_frame;
-
unsigned index = measure->base.index++;
if (event_name == NULL)
event_name = intel_measure_snapshot_string(type);
if (config->cpu_measure) {
- intel_measure_print_cpu_result(measure->base.frame,
+ intel_measure_print_cpu_result(measure_device->frame,
measure->base.batch_count,
measure->base.batch_size,
index/2,
static unsigned cmd_buffer_count = 0;
base->batch_count = p_atomic_inc_return(&cmd_buffer_count);
base->batch_size = cmd_buffer->total_batch_size;
+ base->frame = measure_device->frame;
if (base->index %2 == 1) {
anv_measure_end_snapshot(cmd_buffer, base->event_count);