Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/attribute-stride-vertex-bytes.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

617 lines
21 KiB
JSON

{
"format": 1,
"case": "attribute-stride-vertex-bytes",
"suite_version": 1,
"shaders": [
{
"fixture": "icb_render_stride_template.ll",
"entry": "icb_render_stride_template",
"source_sha256": "1b6def77f2d7875e65ded90342ce1fa0d6c575772d0509066b888e48dc8fd882"
},
{
"fixture": "icb_render_stride_template.air.ll",
"entry": "icb_render_stride_template",
"source_sha256": "db4c8dcf8925e4544a499e1aa095e80cc417783c3f51f8efaa7134cddb5111bb"
}
],
"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": "1b6def77f2d7875e65ded90342ce1fa0d6c575772d0509066b888e48dc8fd882"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "db4c8dcf8925e4544a499e1aa095e80cc417783c3f51f8efaa7134cddb5111bb"
}
}
},
{
"name": "render-pipeline",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "bb359be4499d17c777f1b79fcd2a4c288c755e101a25a537f8bf04d987ced732"
}
}
},
{
"name": "buffer:out",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "f2eaacf85101341c5933f3b734b3d021b1da74f0513917b2d29613b3925f8dbb"
}
}
},
{
"name": "pass",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "8b15f18850255fc6658526eb0c114d5f3431a36fea8b20ef4b0451611f973733"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "pipeline",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer:out",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "render",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"variant": {
"name": "Completed",
"payload": "absent"
}
}
}
}
}
},
{
"name": "program",
"observed": {
"value": "absent"
},
"children": [
{
"name": "calls",
"observed": {
"value": "absent"
},
"children": [
{
"name": "0-renderCommandEncoder",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
}
]
},
{
"name": "status",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"variant": {
"name": "Completed",
"payload": "absent"
}
}
}
}
}
},
{
"name": "command-buffer-error",
"observed": {
"value": {
"variant": {
"name": "None",
"payload": "absent"
}
}
}
}
]
},
{
"name": "out",
"observed": {
"value": {
"bytes": "EAAAAAAAAAARAAAAAQAAABIAAAACAAAAEwAAAAMAAAAQAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAAAAAAAwAAABAAAAAAAAAAAAAAAAEAAAAAAAAAAgAAAAAAAAADAAAAEAAAAAAAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAMAAAA="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 128
}
},
"element": "u32",
"row_offset": 0,
"row_elements": 32,
"row_pitch": 128,
"rows": 1,
"image_pitch": 128,
"images": 1,
"gaps": "ignored"
}
}
}
},
{
"name": "notices",
"observed": {
"value": "absent"
},
"children": [
{
"name": "set",
"observed": {
"value": {
"nothing": "announced_nothing"
}
}
},
{
"name": "counts",
"observed": {
"value": {
"fields": {}
}
}
}
]
}
]
}
}
}
],
"validated": {
"stopped": {
"call": "render",
"message": "Draw Errors Validation\nproviding `MTLAttributeStrideStatic` to `attributeStride` when stride at buffer-layout index 1 is dynamic."
}
}
}
],
"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",
"bounds": {
"addressable_buffers_made": 2,
"arena_pools_made": 1,
"argument_objects_retained": 1,
"argument_samplers_taken": 1,
"argument_tables_held_at_bind": 3,
"argument_tables_retained": 1,
"bare_starts": 1,
"batches_submitted_by_waiters": 1,
"batches_with_none_pending": 1,
"blocks_ahead_waited_for": 3,
"bound_offsets_moved": 3,
"buffer_blocks_made_ahead": 2,
"command_buffers_begun": 11,
"command_buffers_begun_batch_barriers": 1,
"command_buffers_begun_continuations": 1,
"command_buffers_begun_encoders": 1,
"command_buffers_begun_secondaries": 7,
"command_buffers_begun_segments": 1,
"command_buffers_submitted": 4,
"commands_recorded.begin_command_buffer": 2,
"commands_recorded.cmd_begin_render_pass": 1,
"commands_recorded.cmd_bind_descriptor_sets": 4,
"commands_recorded.cmd_bind_pipeline": 4,
"commands_recorded.cmd_bind_vertex_buffers2": 1,
"commands_recorded.cmd_draw": 4,
"commands_recorded.cmd_end_render_pass": 1,
"commands_recorded.cmd_execute_commands": 1,
"commands_recorded.cmd_pipeline_barrier": 3,
"commands_recorded.cmd_push_constants": 4,
"commands_recorded.cmd_set_cull_mode": 4,
"commands_recorded.cmd_set_depth_bias": 4,
"commands_recorded.cmd_set_front_face": 4,
"commands_recorded.cmd_set_primitive_restart_enable": 4,
"commands_recorded.cmd_set_primitive_topology": 4,
"commands_recorded.cmd_set_scissor": 4,
"commands_recorded.cmd_set_viewport": 4,
"commands_recorded.end_command_buffer": 11,
"commits_handed_off": 1,
"commits_taken_in": 1,
"completed_waits": 4,
"completed_where_seen": 1,
"completion_arms": 1,
"completion_arms_after_a_wake": 1,
"completion_waiter_parks": 1,
"creation_pipelines_drawn": 1,
"creation_pipelines_made": 1,
"creation_render_pipelines_drawn": 1,
"creation_render_pipelines_made": 1,
"descriptor_keys_built": 1,
"device_memory_allocated": 205520896,
"draw_shapes_made": 4,
"draw_states_recorded": 41,
"draws_settled": 4,
"draws_unkept": 4,
"draws_unkept_instance": 3,
"draws_unkept_instance_steps": 3,
"draws_unkept_making": 3,
"draws_unkept_writing": 4,
"driver_diagnostics_withheld": 2,
"encoder_command_buffers_begun": 10,
"fence_waits": 1,
"finales_folded": 1,
"functions_translated": 2,
"gate_waits": 1,
"gate_waits_slept": 1,
"graphics_pipelines_looked_up": 4,
"heap_tables_worked_out": 8,
"host_steps_recorded": 1,
"image_blocks_made_ahead": 1,
"linked_use_questions_asked": 3,
"new_buffer_bytes_cleared": 192,
"object_churn.buffers_parked": 2,
"object_churn.buffers_recycled": 2,
"passes_not_inline_layouts": 1,
"pipeline_layouts_made": 2,
"pipelines_pooled": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 3,
"queue_submissions": 108,
"queues_sharing_a_vk_queue": 1,
"render_encoders_ended": 1,
"render_passes_begun_instances": 1,
"render_passes_made": 1,
"resident_textures_looked_at": 1,
"scheduled_where_submitted": 1,
"scheduler_passes_by_waiters": 1,
"scheduler_sleeps": 1,
"scheduler_wakes_commit": 1,
"set_zero_sets_reused": 2,
"shader_modules_made": 2,
"slot_returns": 1,
"spare_command_pools_taken": 1,
"stage_entries_shared": 2,
"stage_entries_specialized": 2,
"stage_tables_read": 7,
"stage_tables_read_in_part": 3,
"submit_check_calls": 162,
"submit_infos": 2,
"trail_waits": 1,
"uses_noted_covered": 3,
"variant_pipelines_made": 2,
"variants_taken_back": 2,
"wakes_completion_waiters": 1,
"wakes_spared": 7
},
"moving": {
"gate_waits_slept": 0,
"queue_submissions": 107,
"submit_check_calls": 157
},
"composed": {
"argument_samplers_taken": 1,
"blocks_ahead_waited_for": 3,
"buffer_blocks_made_ahead": 2,
"command_buffers_begun": 11,
"command_buffers_begun_batch_barriers": 1,
"command_buffers_begun_continuations": 1,
"command_buffers_begun_secondaries": 7,
"command_buffers_begun_segments": 1,
"command_buffers_submitted": 4,
"commands_recorded.cmd_bind_pipeline": 4,
"commands_recorded.cmd_pipeline_barrier": 3,
"commands_recorded.cmd_set_cull_mode": 4,
"commands_recorded.cmd_set_depth_bias": 4,
"commands_recorded.cmd_set_front_face": 4,
"commands_recorded.cmd_set_primitive_restart_enable": 4,
"commands_recorded.cmd_set_primitive_topology": 4,
"commands_recorded.cmd_set_scissor": 4,
"commands_recorded.cmd_set_viewport": 4,
"commands_recorded.end_command_buffer": 11,
"creation_pipelines_drawn": 1,
"creation_render_pipelines_drawn": 1,
"creation_render_pipelines_made": 1,
"device_memory_allocated": 201326592,
"draw_states_recorded": 41,
"draws_unkept_instance": 3,
"draws_unkept_instance_steps": 3,
"draws_unkept_making": 3,
"driver_diagnostics_withheld": 2,
"encoder_command_buffers_begun": 10,
"functions_translated": 2,
"graphics_pipelines_looked_up": 4,
"host_steps_recorded": 1,
"image_blocks_made_ahead": 1,
"linked_use_questions_asked": 3,
"new_buffer_bytes_cleared": 192,
"pipelines_pooled": 1,
"plain_buffer_blocks_made": 2,
"queue_submissions": 1,
"queues_sharing_a_vk_queue": 0,
"render_passes_made": 1,
"stage_entries_shared": 1,
"stage_entries_specialized": 2,
"submit_check_calls": 0,
"submit_infos": 2
},
"ceilings": {
"addressable_buffers_made": 2,
"arena_pools_made": 1,
"creation_pipelines_made": 1,
"pipeline_layouts_made": 2,
"pooled_memory_blocks_made": 3,
"shader_modules_made": 2,
"variant_pipelines_made": 2
},
"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 6.84 and ours at 7.69; 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": 290,
"times": {
"case": "attribute-stride-vertex-bytes",
"calls": 5,
"in_calls": 40228458,
"on_cpu": 1600791,
"blocked": 38628501,
"elsewhere": 4867958,
"spend": 45217791,
"spend_least": 41553624,
"spend_most": 48537167,
"per_call": [
{
"call": "buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 38750,
"on_cpu": 38959,
"blocked": 0,
"wall_least": 32375,
"wall_most": 46625,
"wall_total": 38750,
"on_cpu_total": 38959,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 33906542,
"on_cpu": 1022375,
"blocked": 32882792,
"wall_least": 31445333,
"wall_most": 37656458,
"wall_total": 33906542,
"on_cpu_total": 1022375,
"blocked_total": 32882792
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 8583,
"on_cpu": 8833,
"blocked": 0,
"wall_least": 6583,
"wall_most": 12916,
"wall_total": 8583,
"on_cpu_total": 8833,
"blocked_total": 0
},
{
"call": "render",
"least_calls": 1,
"most_calls": 1,
"wall": 5783500,
"on_cpu": 310958,
"blocked": 5435291,
"wall_least": 5204000,
"wall_most": 6056667,
"wall_total": 5783500,
"on_cpu_total": 310958,
"blocked_total": 5435291
},
{
"call": "render_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 201875,
"on_cpu": 202209,
"blocked": 0,
"wall_least": 179583,
"wall_most": 218750,
"wall_total": 201875,
"on_cpu_total": 202209,
"blocked_total": 0
}
]
}
},
{
"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 6.84 and ours at 7.69; 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": 303,
"times": {
"case": "attribute-stride-vertex-bytes",
"calls": 5,
"in_calls": 4202332,
"on_cpu": 2681750,
"blocked": 1536959,
"elsewhere": 1034458,
"spend": 5238918,
"spend_least": 4976750,
"spend_most": 12896667,
"per_call": [
{
"call": "buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 32791,
"on_cpu": 33042,
"blocked": 0,
"wall_least": 30958,
"wall_most": 34500,
"wall_total": 32791,
"on_cpu_total": 33042,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 649666,
"on_cpu": 651458,
"blocked": 0,
"wall_least": 603459,
"wall_most": 1303917,
"wall_total": 649666,
"on_cpu_total": 651458,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 2750,
"on_cpu": 3000,
"blocked": 0,
"wall_least": 2083,
"wall_most": 5333,
"wall_total": 2750,
"on_cpu_total": 3000,
"blocked_total": 0
},
{
"call": "render",
"least_calls": 1,
"most_calls": 1,
"wall": 3085458,
"on_cpu": 1561417,
"blocked": 1524041,
"wall_least": 2865750,
"wall_most": 4558625,
"wall_total": 3085458,
"on_cpu_total": 1561417,
"blocked_total": 1524041
},
{
"call": "render_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 429041,
"on_cpu": 429625,
"blocked": 0,
"wall_least": 388625,
"wall_most": 543042,
"wall_total": 429041,
"on_cpu_total": 429625,
"blocked_total": 0
}
]
}
}
]
}