Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/shared-exponent-store.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

779 lines
26 KiB
JSON

{
"format": 1,
"case": "shared-exponent-store",
"suite_version": 1,
"shaders": [
{
"fixture": "rt6_resolves.ll",
"entry": "rt6_resolve_full+rt6_resolve_white",
"source_sha256": "826f30ea88e648ce64e04e26abdfaa51c2c81fdd933f41e0a5b621eb7c9d18e9"
},
{
"fixture": "rt6_resolves.air.ll",
"entry": "rt6_resolve_full+rt6_resolve_white",
"source_sha256": "deacd509ddf64f7fe146057f3097edfb6582b0033fd623a9d2ec49db7596aec9"
}
],
"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": "826f30ea88e648ce64e04e26abdfaa51c2c81fdd933f41e0a5b621eb7c9d18e9"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "deacd509ddf64f7fe146057f3097edfb6582b0033fd623a9d2ec49db7596aec9"
}
}
},
{
"name": "render-pipeline",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "ef9cfd0906dffed3959ef74fbf3333b9aa489e58afd3c535eafeeaa69512a7aa"
}
}
},
{
"name": "target",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "a0081d192c605fb09ebb14bad357be2619fd0dd2781d10d54a6cdc8f585cd63a"
}
}
},
{
"name": "texels",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "0fbd1b6ba4917dd9f824a90d76a2255d1fe37a9170d85c01e9e0918f1b70615f"
}
}
},
{
"name": "buffer:0",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "d99e58435243d9fef9c88273b8d553b4fba4d0baf8009d29eae74fa99e0d9f57"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "render-pipeline",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "target",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer:0",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "wrote-codes",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "drawn",
"observed": {
"value": "absent"
},
"children": [
{
"name": "calls",
"observed": {
"value": "absent"
},
"children": [
{
"name": "0-render",
"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": "texels",
"observed": {
"value": {
"bytes": "gAACboAAAm6AAAJugAACboAAAm6AAAJugAACboAAAm6AAAJugAACboAAAm6AAAJugAACboAAAm6AAAJugAACbg=="
},
"shape": {
"bytes": {
"region": {
"texture": {
"level": 0,
"slice": 0,
"aspect": "color",
"sample": 0,
"origin": [
0,
0,
0
],
"size": [
4,
4,
1
]
}
},
"element": "u32",
"row_offset": 0,
"row_elements": 4,
"row_pitch": 16,
"rows": 4,
"image_pitch": 64,
"images": 1,
"gaps": "compared"
}
}
}
}
]
},
{
"name": "wrote-codes-again",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "no-draw",
"observed": {
"value": "absent"
},
"children": [
{
"name": "calls",
"observed": {
"value": "absent"
},
"children": [
{
"name": "0-render",
"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": "texels",
"observed": {
"value": {
"bytes": "AQQMoAEEDKABBAygAQQMoAEEDKABBAygAQQMoAEEDKABBAygAQQMoAEEDKABBAygAQQMoAEEDKABBAygAQQMoA=="
},
"shape": {
"bytes": {
"region": {
"texture": {
"level": 0,
"slice": 0,
"aspect": "color",
"sample": 0,
"origin": [
0,
0,
0
],
"size": [
4,
4,
1
]
}
},
"element": "u32",
"row_offset": 0,
"row_elements": 4,
"row_pitch": 16,
"rows": 4,
"image_pitch": 64,
"images": 1,
"gaps": "compared"
}
}
}
}
]
},
{
"name": "notices",
"observed": {
"value": "absent"
},
"children": [
{
"name": "set",
"observed": {
"value": {
"nothing": "announced_nothing"
}
}
},
{
"name": "counts",
"observed": {
"value": {
"fields": {}
}
}
}
]
}
]
}
}
}
],
"validated": {
"stopped": {
"call": "render",
"message": "End Encoding Validation\nendEncoding without encoding GPU work."
}
}
}
],
"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_retained": 1,
"bare_starts": 2,
"batches_submitted_by_waiters": 2,
"batches_with_none_pending": 2,
"blocks_ahead_hurried": 1,
"blocks_ahead_waited_for": 2,
"bound_notices_made": 1,
"command_buffers_begun": 3,
"command_buffers_begun_batch_work": 1,
"command_buffers_begun_encoders": 2,
"command_buffers_submitted": 3,
"commands_recorded.begin_command_buffer": 2,
"commands_recorded.cmd_begin_render_pass": 1,
"commands_recorded.cmd_bind_descriptor_sets": 1,
"commands_recorded.cmd_bind_pipeline": 1,
"commands_recorded.cmd_copy_buffer": 1,
"commands_recorded.cmd_draw": 1,
"commands_recorded.cmd_end_render_pass": 1,
"commands_recorded.cmd_pipeline_barrier": 4,
"commands_recorded.cmd_push_constants": 1,
"commands_recorded.cmd_set_blend_constants": 1,
"commands_recorded.cmd_set_cull_mode": 1,
"commands_recorded.cmd_set_depth_bias": 1,
"commands_recorded.cmd_set_depth_compare_op": 1,
"commands_recorded.cmd_set_depth_test_enable": 1,
"commands_recorded.cmd_set_depth_write_enable": 1,
"commands_recorded.cmd_set_front_face": 1,
"commands_recorded.cmd_set_primitive_restart_enable": 1,
"commands_recorded.cmd_set_primitive_topology": 1,
"commands_recorded.cmd_set_scissor": 1,
"commands_recorded.cmd_set_stencil_compare_mask": 1,
"commands_recorded.cmd_set_stencil_op": 1,
"commands_recorded.cmd_set_stencil_reference": 1,
"commands_recorded.cmd_set_stencil_test_enable": 1,
"commands_recorded.cmd_set_stencil_write_mask": 1,
"commands_recorded.cmd_set_viewport": 1,
"commands_recorded.end_command_buffer": 3,
"commits_handed_off": 2,
"commits_taken_in": 2,
"completed_waits": 5,
"completed_where_seen": 2,
"completion_arms": 2,
"completion_arms_after_a_wake": 2,
"completion_waiter_parks": 2,
"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": 276824064,
"draw_shapes_made": 1,
"draw_states_recorded": 19,
"draws_settled": 1,
"draws_unkept": 1,
"draws_unkept_other": 1,
"driver_diagnostics_withheld": 2,
"encoder_command_buffers_begun": 2,
"fence_waits": 2,
"finales_folded": 2,
"functions_shared": 2,
"functions_translated": 2,
"gate_waits": 2,
"gate_waits_slept": 2,
"graphics_pipelines_looked_up": 1,
"heap_tables_worked_out": 2,
"host_copy_blocks_made_in_place": 1,
"host_copy_blocks_readied": 1,
"host_texel_copies": 4,
"image_blocks_made_ahead": 2,
"image_blocks_made_in_place": 2,
"images_started_on_the_host": 1,
"inline_passes": 1,
"linked_use_questions_asked": 2,
"new_buffer_bytes_cleared": 16,
"object_churn.buffers_parked": 1,
"object_churn.buffers_recycled": 1,
"object_churn.images_own_memory": 1,
"object_churn.textures_image": 1,
"object_churn.vk_image_bindings": 1,
"object_churn.vk_image_views_made": 1,
"object_churn.vk_images_destroyed": 3,
"object_churn.vk_images_made": 3,
"pipeline_layouts_made": 1,
"pipeline_layouts_shared": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 4,
"queue_submissions": 2,
"queues_sharing_a_vk_queue": 1,
"render_encoders_ended": 2,
"render_passes_begun_inline": 1,
"render_passes_made": 2,
"resident_textures_looked_at": 1,
"scheduled_where_submitted": 2,
"scheduler_passes": 1,
"scheduler_passes_by_waiters": 2,
"scheduler_sleeps": 2,
"scheduler_wakes_commit": 2,
"shader_modules_made": 2,
"shader_modules_shared": 2,
"slot_returns": 2,
"spare_command_pools_taken": 2,
"stage_entries_shared": 5,
"stage_entries_specialized": 2,
"stage_tables_read": 4,
"submit_infos": 2,
"trail_waits": 2,
"untouched_passes_skipped": 1,
"variant_pipelines_made": 1,
"wakes_completion_waiters": 2,
"wakes_spared": 14
},
"moving": {
"gate_waits_slept": 1
},
"composed": {
"addressable_buffers_made": 1,
"arena_pools_made": 1,
"argument_samplers_taken": 1,
"blocks_ahead_hurried": 1,
"blocks_ahead_waited_for": 2,
"command_buffers_begun": 3,
"command_buffers_begun_batch_work": 1,
"command_buffers_submitted": 3,
"commands_recorded.cmd_copy_buffer": 1,
"commands_recorded.cmd_pipeline_barrier": 4,
"commands_recorded.end_command_buffer": 3,
"device_memory_allocated": 268435456,
"draw_shapes_made": 1,
"functions_translated": 2,
"host_copy_blocks_made_in_place": 0,
"host_copy_blocks_readied": 1,
"image_blocks_made_ahead": 2,
"image_blocks_made_in_place": 0,
"pipeline_layouts_made": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 4,
"queues_sharing_a_vk_queue": 0,
"shader_modules_made": 2,
"stage_entries_specialized": 2
},
"per_state": {
"pipelines": 2,
"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": "shared-exponent-store",
"calls": 10,
"in_calls": 28517542,
"on_cpu": 1014960,
"blocked": 27504709,
"elsewhere": 4349958,
"spend": 32929165,
"spend_least": 31626127,
"spend_most": 35242250,
"per_call": [
{
"call": "buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 3084,
"on_cpu": 3209,
"blocked": 0,
"wall_least": 2625,
"wall_most": 3833,
"wall_total": 3084,
"on_cpu_total": 3209,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 22461375,
"on_cpu": 632250,
"blocked": 21819125,
"wall_least": 22116625,
"wall_most": 24436292,
"wall_total": 22461375,
"on_cpu_total": 632250,
"blocked_total": 21819125
},
{
"call": "read_texture",
"least_calls": 2,
"most_calls": 2,
"wall": 667,
"on_cpu": 834,
"blocked": 0,
"wall_least": 416,
"wall_most": 2250,
"wall_total": 2417,
"on_cpu_total": 2751,
"blocked_total": 0
},
{
"call": "render",
"least_calls": 2,
"most_calls": 2,
"wall": 383083,
"on_cpu": 22625,
"blocked": 361333,
"wall_least": 282875,
"wall_most": 967292,
"wall_total": 5868708,
"on_cpu_total": 219666,
"blocked_total": 5649042
},
{
"call": "render_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 116542,
"on_cpu": 116792,
"blocked": 0,
"wall_least": 102625,
"wall_most": 141250,
"wall_total": 116542,
"on_cpu_total": 116792,
"blocked_total": 0
},
{
"call": "replace_region",
"least_calls": 2,
"most_calls": 2,
"wall": 625,
"on_cpu": 750,
"blocked": 0,
"wall_least": 333,
"wall_most": 1167,
"wall_total": 2167,
"on_cpu_total": 2500,
"blocked_total": 0
},
{
"call": "target",
"least_calls": 1,
"most_calls": 1,
"wall": 31167,
"on_cpu": 31291,
"blocked": 0,
"wall_least": 27541,
"wall_most": 35042,
"wall_total": 31167,
"on_cpu_total": 31291,
"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 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": "shared-exponent-store",
"calls": 10,
"in_calls": 2754292,
"on_cpu": 1594585,
"blocked": 1132124,
"elsewhere": 530250,
"spend": 3286123,
"spend_least": 3144625,
"spend_most": 3597834,
"per_call": [
{
"call": "buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 2125,
"on_cpu": 2250,
"blocked": 0,
"wall_least": 1583,
"wall_most": 2792,
"wall_total": 2125,
"on_cpu_total": 2250,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 142625,
"on_cpu": 143292,
"blocked": 0,
"wall_least": 135083,
"wall_most": 157750,
"wall_total": 142625,
"on_cpu_total": 143292,
"blocked_total": 0
},
{
"call": "read_texture",
"least_calls": 2,
"most_calls": 2,
"wall": 1125,
"on_cpu": 1291,
"blocked": 0,
"wall_least": 708,
"wall_most": 1584,
"wall_total": 3416,
"on_cpu_total": 3750,
"blocked_total": 0
},
{
"call": "render",
"least_calls": 2,
"most_calls": 2,
"wall": 60083,
"on_cpu": 17250,
"blocked": 43334,
"wall_least": 56917,
"wall_most": 64583,
"wall_total": 1025791,
"on_cpu_total": 85126,
"blocked_total": 930874
},
{
"call": "render_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 1519000,
"on_cpu": 1313542,
"blocked": 201250,
"wall_least": 1484709,
"wall_most": 1565125,
"wall_total": 1519000,
"on_cpu_total": 1313542,
"blocked_total": 201250
},
{
"call": "replace_region",
"least_calls": 2,
"most_calls": 2,
"wall": 791,
"on_cpu": 916,
"blocked": 0,
"wall_least": 709,
"wall_most": 1250,
"wall_total": 1958,
"on_cpu_total": 2209,
"blocked_total": 0
},
{
"call": "target",
"least_calls": 1,
"most_calls": 1,
"wall": 35042,
"on_cpu": 35250,
"blocked": 0,
"wall_least": 31542,
"wall_most": 43708,
"wall_total": 35042,
"on_cpu_total": 35250,
"blocked_total": 0
}
]
}
}
]
}