Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/blit-copy-indirect-command-buffer.json
T
Anees Iqbal da929c8a96 Re-bless the cost records at d0f0419800
A whole-set cost --runs 8 --write on the M3 Max, then --alone over the cases it
changed: images' blocks at 64 MiB (device_memory_allocated of the cases that
read 68 MiB) and what else moved since 9b046a7cf8 (dv-m3d).
2026-11-11 01:51:58 -08:00

933 lines
31 KiB
JSON

{
"format": 1,
"case": "blit-copy-indirect-command-buffer",
"suite_version": 1,
"shaders": [
{
"fixture": "icb_replay_template.ll",
"entry": "icb_replay_template",
"source_sha256": "fee2985635a8e466a450ee0fe473abdc5faa0694ddcc5b5bdc15d67c10842479"
},
{
"fixture": "icb_replay_template.air.ll",
"entry": "icb_replay_template",
"source_sha256": "dcfcf642972c3bc8d9d7a93a304adf8aecf78a19cd03e9468a8b3f90dee453c9"
}
],
"answers": [
{
"key": {
"chip": "apple-m3-max",
"os_version": "27.0.1",
"os_build": "26A434",
"metal_level": "27.0.1"
},
"provenance": "metal_run",
"device": "Apple M3 Max",
"runs": 3,
"outcomes": [
{
"runs": 3,
"transcript": {
"root": {
"name": "case",
"observed": {
"value": "absent"
},
"children": [
{
"name": "inputs",
"observed": {
"value": "absent"
},
"children": [
{
"name": "air",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "fee2985635a8e466a450ee0fe473abdc5faa0694ddcc5b5bdc15d67c10842479"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "dcfcf642972c3bc8d9d7a93a304adf8aecf78a19cd03e9468a8b3f90dee453c9"
}
}
},
{
"name": "icb-descriptor",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "2eabc39eb6a932ff8294ff3e76704207a90169b9cf3d9962ea772370d5dc64f1"
}
}
},
{
"name": "commands",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "fd0c14f69fb7d0ff44833c289bd703d209c10da8b6019c432d83ae75a4bf3f21"
}
}
},
{
"name": "call",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "ab8574f80e24a83c498f6a3e67536c9b4640319554fa043da1fd65ea296b2a1c"
}
}
},
{
"name": "ranges",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "3617af50d2a05d73dca0766307779bc4bfb0b9b5f3d864d704c11a8520906c46"
}
}
},
{
"name": "buffer:params",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "b9c747836e2eb1e439310c47919daf8f387a8882cc54fad97829b6c910f35214"
}
}
},
{
"name": "buffer:out",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "e32ff50f2220f543bcbc30f110bdc5e7f0bb3bc265390ecae964a7440c61f9d0"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "pipeline",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer/params",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-none/out",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-none/source",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-none/destination",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-one-at-0/out",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-one-at-0/source",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-one-at-0/destination",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-one-at-2/out",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-one-at-2/source",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-one-at-2/destination",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-whole/out",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-whole/source",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-whole/destination",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "program",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "program-calls",
"observed": {
"value": "absent"
},
"children": [
{
"name": "calls",
"observed": {
"value": "absent"
},
"children": [
{
"name": "0-copyIndirectCommandBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "1-executeCommandsInBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "2-copyIndirectCommandBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "3-executeCommandsInBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "4-copyIndirectCommandBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "5-executeCommandsInBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "6-copyIndirectCommandBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "7-executeCommandsInBuffer",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
}
]
},
{
"name": "status",
"observed": {
"value": {
"variant": {
"name": "Completed",
"payload": "absent"
}
}
}
}
]
},
{
"name": "read-back/range-none",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-none",
"observed": {
"value": {
"bytes": "7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7g=="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 160
}
},
"element": "u32",
"row_offset": 0,
"row_elements": 40,
"row_pitch": 160,
"rows": 1,
"image_pitch": 160,
"images": 1,
"gaps": "ignored"
}
}
}
},
{
"name": "read-back/range-one-at-0",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-one-at-0",
"observed": {
"value": {
"bytes": "ZwAAAGoAAABtAAAAcAAAAO7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7g=="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 160
}
},
"element": "u32",
"row_offset": 0,
"row_elements": 40,
"row_pitch": 160,
"rows": 1,
"image_pitch": 160,
"images": 1,
"gaps": "ignored"
}
}
}
},
{
"name": "read-back/range-one-at-2",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-one-at-2",
"observed": {
"value": {
"bytes": "7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7jMBAAA6AQAAQQEAAEgBAADu7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7g=="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 160
}
},
"element": "u32",
"row_offset": 0,
"row_elements": 40,
"row_pitch": 160,
"rows": 1,
"image_pitch": 160,
"images": 1,
"gaps": "ignored"
}
}
}
},
{
"name": "read-back/range-whole",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "range-whole",
"observed": {
"value": {
"bytes": "ZwAAAGoAAABtAAAAcAAAAO7u7u7u7u7u7u7u7u7u7u7NAAAA0gAAANcAAADcAAAA7u7u7u7u7u7u7u7u7u7u7jMBAAA6AQAAQQEAAEgBAADu7u7u7u7u7u7u7u7u7u7umwEAAKYBAACxAQAAvAEAAO7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7g=="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 160
}
},
"element": "u32",
"row_offset": 0,
"row_elements": 40,
"row_pitch": 160,
"rows": 1,
"image_pitch": 160,
"images": 1,
"gaps": "ignored"
}
}
}
},
{
"name": "notices",
"observed": {
"value": "absent"
},
"children": [
{
"name": "set",
"observed": {
"value": {
"nothing": "announced_nothing"
}
}
},
{
"name": "counts",
"observed": {
"value": {
"fields": {}
}
}
}
]
}
]
}
}
}
],
"validated": "ran"
}
],
"costs": [
{
"venue": "Apple M3 Max",
"runs": 8,
"measured": "8 run(s) of the whole selection on Apple M3 Max, in the case set's own order, the largest each count reached",
"contrasted": "8 run(s) of each case on its own on Apple M3 Max, nothing before it on the device, the largest each count reached",
"degraded": [
"metal2vulkan-degrade-host-replayed-indirect-commands"
],
"bounds": {
"addressable_buffers_made": 1,
"arena_pools_made": 1,
"argument_objects_retained": 6,
"argument_tables_retained": 3,
"bare_starts": 4,
"batches_held_past_a_look": 3,
"batches_with_none_pending": 4,
"blocks_ahead_waited_for": 1,
"command_barriers": 6,
"command_buffers_begun": 21,
"command_buffers_begun_batch_barriers": 4,
"command_buffers_begun_batch_work": 1,
"command_buffers_begun_continuations": 4,
"command_buffers_begun_encoders": 8,
"command_buffers_begun_segments": 4,
"command_buffers_submitted": 21,
"commands_recorded.begin_command_buffer": 20,
"commands_recorded.cmd_bind_descriptor_sets": 6,
"commands_recorded.cmd_bind_pipeline": 6,
"commands_recorded.cmd_copy_buffer": 10,
"commands_recorded.cmd_dispatch": 6,
"commands_recorded.cmd_pipeline_barrier": 20,
"commands_recorded.cmd_push_constants": 6,
"commands_recorded.end_command_buffer": 21,
"commits_handed_off": 1,
"commits_taken_in": 1,
"completed_waits": 7,
"completed_where_seen": 1,
"completion_arms": 4,
"completion_arms_after_a_wake": 4,
"completion_waiter_parks": 4,
"creation_pipelines_made": 0,
"device_memory_allocated": 205520896,
"dispatches_planned_as_before": 5,
"encoder_command_buffers_begun": 16,
"fence_waits": 4,
"finales_apart": 4,
"functions_shared": 2,
"functions_translated": 2,
"gate_waits": 1,
"gate_waits_slept": 1,
"heads_held_for_host_steps": 10,
"heads_waiting_at_their_gate": 4,
"heap_tables_worked_out": 1,
"host_step_pipelines_made": 1,
"host_steps_recorded": 3,
"image_blocks_made_ahead": 1,
"indirect_record_bytes_copied": 15736,
"indirect_record_runs_read": 1,
"indirect_records_read": 7,
"live_tables_uploaded": 1,
"new_buffer_bytes_cleared": 75744,
"object_churn.buffers_evicted": 8,
"object_churn.buffers_parked": 23,
"object_churn.buffers_recycled": 15,
"object_churn.vk_buffer_bindings": 8,
"object_churn.vk_buffers_destroyed": 8,
"object_churn.vk_buffers_made": 8,
"pipeline_layouts_made": 2,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 3,
"queue_submissions": 4,
"queues_sharing_a_vk_queue": 1,
"resident_address_indexes_made": 3,
"resident_resources_joined": 8,
"resident_textures_looked_at": 4,
"root_table_ranges_noted": 12,
"scheduled_where_submitted": 1,
"scheduler_passes": 11,
"scheduler_passes_by_waiters": 1,
"scheduler_sleeps": 7,
"scheduler_wakes_commit": 1,
"scheduler_wakes_completion": 3,
"scheduler_wakes_host": 3,
"set_zero_sets_reused": 3,
"shader_modules_made": 2,
"slot_returns": 1,
"spare_command_pools_taken": 1,
"stage_entries_shared": 2,
"stage_entries_specialized": 1,
"submit_infos": 8,
"trail_waits": 1,
"variant_pipelines_made": 1,
"variants_taken_back": 2,
"wakes_completion_waiters": 4,
"wakes_spared": 13
},
"composed": {
"addressable_buffers_made": 1,
"blocks_ahead_waited_for": 1,
"command_buffers_begun": 21,
"command_buffers_begun_batch_work": 1,
"command_buffers_submitted": 21,
"commands_recorded.cmd_copy_buffer": 10,
"commands_recorded.cmd_pipeline_barrier": 20,
"commands_recorded.end_command_buffer": 21,
"creation_pipelines_made": 0,
"device_memory_allocated": 201326592,
"functions_translated": 2,
"host_step_pipelines_made": 1,
"image_blocks_made_ahead": 1,
"plain_buffer_blocks_made": 2,
"queues_sharing_a_vk_queue": 0,
"stage_entries_shared": 2,
"stage_entries_specialized": 1,
"variant_pipelines_made": 1
},
"ceilings": {
"addressable_buffers_made": 1,
"pipeline_layouts_made": 2,
"pooled_memory_blocks_made": 3,
"shader_modules_made": 2,
"variant_pipelines_made": 1
},
"per_state": {
"pipelines": 0,
"states": 1
}
}
],
"times": [
{
"leg": "metal",
"venue": "native Metal",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 3.18 and ours at 2.63; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 236,
"times": {
"case": "blit-copy-indirect-command-buffer",
"calls": 20,
"in_calls": 26075747,
"on_cpu": 1007205,
"blocked": 25068625,
"elsewhere": 3254375,
"spend": 29356372,
"spend_least": 28333538,
"spend_most": 32333126,
"per_call": [
{
"call": "buffer",
"least_calls": 5,
"most_calls": 5,
"wall": 2208,
"on_cpu": 2333,
"blocked": 0,
"wall_least": 1875,
"wall_most": 2584,
"wall_total": 29583,
"on_cpu_total": 30124,
"blocked_total": 0
},
{
"call": "compute_pipeline_for_commands",
"least_calls": 1,
"most_calls": 1,
"wall": 73750,
"on_cpu": 74000,
"blocked": 0,
"wall_least": 64208,
"wall_most": 83917,
"wall_total": 73750,
"on_cpu_total": 74000,
"blocked_total": 0
},
{
"call": "indirect_command_buffer",
"least_calls": 8,
"most_calls": 8,
"wall": 8083,
"on_cpu": 8250,
"blocked": 0,
"wall_least": 6708,
"wall_most": 10250,
"wall_total": 91000,
"on_cpu_total": 92208,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 21808833,
"on_cpu": 615417,
"blocked": 21193416,
"wall_least": 21322792,
"wall_most": 22683292,
"wall_total": 21808833,
"on_cpu_total": 615417,
"blocked_total": 21193416
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 83,
"on_cpu": 250,
"blocked": 0,
"wall_least": 42,
"wall_most": 209,
"wall_total": 1001,
"on_cpu_total": 1667,
"blocked_total": 0
},
{
"call": "render",
"least_calls": 1,
"most_calls": 1,
"wall": 4044083,
"on_cpu": 201917,
"blocked": 3835833,
"wall_least": 3556791,
"wall_most": 5076666,
"wall_total": 4044083,
"on_cpu_total": 201917,
"blocked_total": 3835833
}
]
}
},
{
"leg": "ours",
"venue": "Apple M3 Max",
"chip": "apple-m3-max",
"os_build": "26A434",
"rounds": 8,
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 3.18 and ours at 2.63; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
"instrument": 233,
"times": {
"case": "blit-copy-indirect-command-buffer",
"calls": 20,
"in_calls": 3250378,
"on_cpu": 444042,
"blocked": 2840959,
"elsewhere": 818209,
"spend": 4047711,
"spend_least": 3993125,
"spend_most": 4593875,
"degraded": [
"metal2vulkan-degrade-host-replayed-indirect-commands"
],
"per_call": [
{
"call": "buffer",
"least_calls": 5,
"most_calls": 5,
"wall": 709,
"on_cpu": 833,
"blocked": 0,
"wall_least": 625,
"wall_most": 792,
"wall_total": 5000,
"on_cpu_total": 5625,
"blocked_total": 0
},
{
"call": "compute_pipeline_for_commands",
"least_calls": 1,
"most_calls": 1,
"wall": 106041,
"on_cpu": 106375,
"blocked": 0,
"wall_least": 88958,
"wall_most": 113000,
"wall_total": 106041,
"on_cpu_total": 106375,
"blocked_total": 0
},
{
"call": "indirect_command_buffer",
"least_calls": 8,
"most_calls": 8,
"wall": 2083,
"on_cpu": 2167,
"blocked": 0,
"wall_least": 1958,
"wall_most": 2459,
"wall_total": 29835,
"on_cpu_total": 30708,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 93750,
"on_cpu": 97208,
"blocked": 0,
"wall_least": 70042,
"wall_most": 99542,
"wall_total": 93750,
"on_cpu_total": 97208,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 4,
"most_calls": 4,
"wall": 167,
"on_cpu": 333,
"blocked": 0,
"wall_least": 166,
"wall_most": 209,
"wall_total": 749,
"on_cpu_total": 1334,
"blocked_total": 0
},
{
"call": "render",
"least_calls": 1,
"most_calls": 1,
"wall": 3028084,
"on_cpu": 202042,
"blocked": 2840959,
"wall_least": 2929209,
"wall_most": 3494667,
"wall_total": 3028084,
"on_cpu_total": 202042,
"blocked_total": 2840959
}
]
}
}
]
}