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

612 lines
20 KiB
JSON

{
"format": 1,
"case": "attribute-stride-vertex-buffer",
"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:attributes",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "e9512b567a9e967b6e872380418de278fda0606358af1a6720aa0a173a532e8f"
}
}
},
{
"name": "buffer:out",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "f2eaacf85101341c5933f3b734b3d021b1da74f0513917b2d29613b3925f8dbb"
}
}
},
{
"name": "pass",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "2c1ad4d4e15159cd03c8c301b2cd79b41dd6782c38110a18b20c658eda856575"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "pipeline",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer:attributes",
"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": 2,
"argument_samplers_taken": 1,
"argument_tables_held_at_bind": 3,
"argument_tables_retained": 1,
"bare_starts": 1,
"batches_held_past_a_look": 1,
"batches_with_none_pending": 1,
"blocks_ahead_waited_for": 3,
"bound_offsets_moved": 6,
"buffer_blocks_made_ahead": 2,
"buffer_blocks_made_in_place": 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": 11,
"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": 15,
"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_apart": 1,
"functions_shared": 1,
"functions_translated": 2,
"gate_waits": 1,
"gate_waits_slept": 1,
"graphics_pipelines_looked_up": 4,
"heads_held_for_host_steps": 4,
"heap_tables_worked_out": 8,
"host_steps_recorded": 1,
"image_blocks_made_ahead": 1,
"image_blocks_made_in_place": 1,
"linked_use_questions_asked": 3,
"live_tables_uploaded": 1,
"new_buffer_bytes_cleared": 288,
"object_churn.buffers_parked": 3,
"object_churn.buffers_recycled": 2,
"object_churn.vk_buffer_bindings": 1,
"object_churn.vk_buffers_made": 1,
"passes_not_inline_layouts": 1,
"pipeline_layouts_made": 2,
"pipelines_pooled": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 3,
"queue_submissions": 179,
"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": 5,
"scheduler_passes_by_waiters": 1,
"scheduler_sleeps": 4,
"scheduler_wakes_commit": 1,
"scheduler_wakes_host": 3,
"set_zero_sets_reused": 2,
"shader_modules_made": 2,
"slot_returns": 1,
"spare_command_pools_taken": 1,
"stage_entries_shared": 1,
"stage_entries_specialized": 2,
"stage_tables_read": 7,
"stage_tables_read_in_part": 3,
"submit_check_calls": 229,
"submit_infos": 2,
"trail_waits": 1,
"uses_noted_covered": 3,
"variant_pipelines_made": 2,
"wakes_completion_waiters": 1,
"wakes_handler_threads": 1,
"wakes_spared": 10
},
"moving": {
"queue_submissions": 107,
"submit_check_calls": 157
},
"composed": {
"blocks_ahead_waited_for": 3,
"buffer_blocks_made_ahead": 2,
"buffer_blocks_made_in_place": 0,
"commands_recorded.end_command_buffer": 11,
"device_memory_allocated": 201326592,
"functions_translated": 2,
"image_blocks_made_ahead": 1,
"image_blocks_made_in_place": 0,
"plain_buffer_blocks_made": 2,
"queue_submissions": 1,
"queues_sharing_a_vk_queue": 0,
"render_passes_made": 1,
"stage_entries_specialized": 2,
"submit_check_calls": 0
},
"ceilings": {
"addressable_buffers_made": 2,
"arena_pools_made": 1,
"pooled_memory_blocks_made": 3
},
"per_state": {
"pipelines": 3,
"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-buffer",
"calls": 6,
"in_calls": 40787332,
"on_cpu": 1640582,
"blocked": 38987292,
"elsewhere": 4881834,
"spend": 45819457,
"spend_least": 41995416,
"spend_most": 403746749,
"per_call": [
{
"call": "buffer",
"least_calls": 2,
"most_calls": 2,
"wall": 8291,
"on_cpu": 8416,
"blocked": 0,
"wall_least": 8000,
"wall_most": 9917,
"wall_total": 47292,
"on_cpu_total": 47709,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 34978208,
"on_cpu": 1073541,
"blocked": 33752458,
"wall_least": 31574958,
"wall_most": 339103875,
"wall_total": 34978208,
"on_cpu_total": 1073541,
"blocked_total": 33752458
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 8000,
"on_cpu": 8166,
"blocked": 0,
"wall_least": 6750,
"wall_most": 19666,
"wall_total": 8000,
"on_cpu_total": 8166,
"blocked_total": 0
},
{
"call": "render",
"least_calls": 1,
"most_calls": 1,
"wall": 5579584,
"on_cpu": 314166,
"blocked": 5263708,
"wall_least": 5321334,
"wall_most": 6251208,
"wall_total": 5579584,
"on_cpu_total": 314166,
"blocked_total": 5263708
},
{
"call": "render_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 199458,
"on_cpu": 199791,
"blocked": 0,
"wall_least": 181958,
"wall_most": 52407709,
"wall_total": 199458,
"on_cpu_total": 199791,
"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-buffer",
"calls": 6,
"in_calls": 16416166,
"on_cpu": 9583333,
"blocked": 6977835,
"elsewhere": 27122000,
"spend": 42796624,
"spend_least": 35487207,
"spend_most": 61550415,
"per_call": [
{
"call": "buffer",
"least_calls": 2,
"most_calls": 2,
"wall": 11209,
"on_cpu": 11458,
"blocked": 0,
"wall_least": 10541,
"wall_most": 22333,
"wall_total": 69750,
"on_cpu_total": 70374,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 624167,
"on_cpu": 624125,
"blocked": 0,
"wall_least": 598250,
"wall_most": 1461625,
"wall_total": 624167,
"on_cpu_total": 624125,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 3625,
"on_cpu": 3875,
"blocked": 0,
"wall_least": 3083,
"wall_most": 6208,
"wall_total": 3625,
"on_cpu_total": 3875,
"blocked_total": 0
},
{
"call": "render",
"least_calls": 1,
"most_calls": 1,
"wall": 9653875,
"on_cpu": 3247917,
"blocked": 6304167,
"wall_least": 9006041,
"wall_most": 12640667,
"wall_total": 9653875,
"on_cpu_total": 3247917,
"blocked_total": 6304167
},
{
"call": "render_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 6275541,
"on_cpu": 5685916,
"blocked": 611874,
"wall_least": 5997500,
"wall_most": 10147208,
"wall_total": 6275541,
"on_cpu_total": 5685916,
"blocked_total": 611874
}
]
}
}
]
}