Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/pipeline-handler-render.json
T
Anees Iqbal ea02af47a4 Re-bless the cost records at d562bd4148
1135 recording(s) whose bounds moved. Cause: RT 1987 (206fbfba1c) makes a block ahead for a pool near its next block, and RT 1989 (d562bd4148) keeps a block's worth of bytes ahead per pool and has calls wait for a making instead of making a block in place, so made-ahead, made-in-place and waited-for block counts move. Contrast: pin 32's replay at 39b45dd232 (m3-max-12459) went over on blit-whole-texture-copy alone (buffer_blocks_made_ahead 1 where the record said 0); every value row matched the known-gaps ledger. The full list of moved bounds is in this commit's diff.
Measured on the M3 (s37-pl.sh rebless: cost --runs 8 --write over the whole
set, then cost --runs 8 --alone --write over the changed cases).

(cherry picked from commit ac01ee50d788bbd880e7f9d1a439bbf12c4e6bb7)
2026-11-09 15:47:53 -08:00

594 lines
21 KiB
JSON

{
"format": 1,
"case": "pipeline-handler-render",
"suite_version": 1,
"shaders": [
{
"fixture": "rt6_resolves.ll",
"entry": "rt6_resolve_full",
"source_sha256": "826f30ea88e648ce64e04e26abdfaa51c2c81fdd933f41e0a5b621eb7c9d18e9"
},
{
"fixture": "rt6_resolves.air.ll",
"entry": "rt6_resolve_full",
"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": "entry",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "2f95ba120953e8e58166d3ef848f9096363dfe22cbfe17836689e64a1a79b50e"
}
}
},
{
"name": "form",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "80b11a8a4a475c55daac33802b44047a84e2141292068132e810bd891ca008cb"
}
}
},
{
"name": "imageblock",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "b0853f6af25f29697838d03f243c9bf1bf6e861fdcb1ec7eb2c51e3446fe4e3f"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "pipelines",
"observed": {
"value": "absent"
},
"children": [
{
"name": "through-the-handler",
"observed": {
"value": "absent"
},
"children": [
{
"name": "arrival",
"observed": {
"value": {
"variant": {
"name": "Answered",
"payload": "absent"
}
}
}
},
{
"name": "delivery",
"observed": {
"value": "absent"
},
"children": [
{
"name": "delivered-a-state",
"observed": {
"value": {
"bool": true
}
}
},
{
"name": "delivered-an-error",
"observed": {
"value": {
"bool": false
}
}
},
{
"name": "delivered-a-reflection",
"observed": {
"value": {
"variant": {
"name": "TheCallTakesNoOptions",
"payload": "absent"
}
}
}
},
{
"name": "facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-handler-state"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
},
{
"name": "max_total_threads_per_threadgroup",
"observed": {
"value": {
"uint": 0
}
}
},
{
"name": "threadgroup_size_matches_tile_size",
"observed": {
"value": {
"bool": false
}
}
},
{
"name": "imageblock_sample_length",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"uint": 4
}
}
}
}
},
{
"name": "imageblock_memory_length",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"uint": 128
}
}
}
}
},
{
"name": "support_indirect_command_buffers",
"observed": {
"value": {
"bool": false
}
}
},
{
"name": "required_threads_per_tile_threadgroup",
"observed": {
"value": {
"fields": {
"depth": {
"uint": 0
},
"height": {
"uint": 0
},
"width": {
"uint": 0
}
}
}
}
}
]
}
]
}
]
},
{
"name": "synchronously",
"observed": {
"value": "absent"
},
"children": [
{
"name": "delivered-a-state",
"observed": {
"value": {
"bool": true
}
}
},
{
"name": "delivered-an-error",
"observed": {
"value": {
"bool": false
}
}
},
{
"name": "delivered-a-reflection",
"observed": {
"value": {
"variant": {
"name": "TheCallTakesNoOptions",
"payload": "absent"
}
}
}
},
{
"name": "facts",
"observed": {
"value": "absent"
},
"children": [
{
"name": "label",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"lines": [
"conformance-handler-state"
]
}
}
}
}
},
{
"name": "device",
"observed": {
"value": {
"bool": true
}
}
},
{
"name": "max_total_threads_per_threadgroup",
"observed": {
"value": {
"uint": 0
}
}
},
{
"name": "threadgroup_size_matches_tile_size",
"observed": {
"value": {
"bool": false
}
}
},
{
"name": "imageblock_sample_length",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"uint": 4
}
}
}
}
},
{
"name": "imageblock_memory_length",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"uint": 128
}
}
}
}
},
{
"name": "support_indirect_command_buffers",
"observed": {
"value": {
"bool": false
}
}
},
{
"name": "required_threads_per_tile_threadgroup",
"observed": {
"value": {
"fields": {
"depth": {
"uint": 0
},
"height": {
"uint": 0
},
"width": {
"uint": 0
}
}
}
}
}
]
}
]
},
{
"name": "the-two-paths-agree",
"observed": {
"value": {
"bool": true
}
}
}
]
},
{
"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",
"bounds": {
"addressable_buffers_made": 2,
"blocks_ahead_waited_for": 1,
"creation_pipelines_made": 1,
"creation_render_pipelines_made": 1,
"descriptor_keys_built": 2,
"driver_diagnostics_withheld": 1,
"functions_translated": 2,
"image_blocks_made_ahead": 1,
"linked_use_questions_asked": 2,
"pipeline_layouts_made": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 3,
"render_passes_made": 1,
"shader_modules_made": 2,
"stage_entries_shared": 5,
"stage_entries_specialized": 2,
"variant_pipelines_made": 1,
"variants_taken_back": 2
},
"composed": {
"addressable_buffers_made": 0,
"blocks_ahead_waited_for": 1,
"creation_render_pipelines_made": 1,
"driver_diagnostics_withheld": 1,
"functions_translated": 2,
"image_blocks_made_ahead": 1,
"linked_use_questions_asked": 2,
"plain_buffer_blocks_made": 2,
"render_passes_made": 1,
"stage_entries_shared": 5,
"stage_entries_specialized": 2
},
"ceilings": {
"addressable_buffers_made": 2,
"creation_pipelines_made": 1,
"pipeline_layouts_made": 1,
"pooled_memory_blocks_made": 3,
"shader_modules_made": 2,
"variant_pipelines_made": 1
},
"per_state": {
"pipelines": 0,
"states": 2
}
}
],
"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": "pipeline-handler-render",
"calls": 2,
"in_calls": 22528124,
"on_cpu": 708126,
"blocked": 21854415,
"elsewhere": 142750,
"spend": 22683999,
"spend_least": 22213792,
"spend_most": 24255958,
"per_call": [
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 22306458,
"on_cpu": 599792,
"blocked": 21726374,
"wall_least": 21860500,
"wall_most": 23879958,
"wall_total": 22306458,
"on_cpu_total": 599792,
"blocked_total": 21726374
},
{
"call": "pipeline_both_paths",
"least_calls": 1,
"most_calls": 1,
"wall": 219833,
"on_cpu": 100375,
"blocked": 117749,
"wall_least": 207250,
"wall_most": 472625,
"wall_total": 219833,
"on_cpu_total": 100375,
"blocked_total": 117749
}
]
}
},
{
"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": "pipeline-handler-render",
"calls": 2,
"in_calls": 187166,
"on_cpu": 187917,
"blocked": 0,
"elsewhere": 1125,
"spend": 189792,
"spend_least": 176041,
"spend_most": 221208,
"per_call": [
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 99000,
"on_cpu": 102459,
"blocked": 0,
"wall_least": 96541,
"wall_most": 134667,
"wall_total": 99000,
"on_cpu_total": 102459,
"blocked_total": 0
},
{
"call": "pipeline_both_paths",
"least_calls": 1,
"most_calls": 1,
"wall": 82375,
"on_cpu": 82708,
"blocked": 0,
"wall_least": 78250,
"wall_most": 100625,
"wall_total": 82375,
"on_cpu_total": 82708,
"blocked_total": 0
}
]
}
}
]
}