Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/mesh-limits-plain.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

363 lines
11 KiB
JSON

{
"format": 1,
"case": "mesh-limits-plain",
"suite_version": 1,
"shaders": [
{
"fixture": "mesh_pipeline_limits.ll",
"entry": "mesh_pipeline_limits_object",
"source_sha256": "baf458800da7dd5691b9b47d29a3273e64fa0da2babb824520e6f2ac40e893c4"
},
{
"fixture": "mesh_pipeline_limits.air.ll",
"entry": "mesh_pipeline_limits_object",
"source_sha256": "a2ef527bd774614156dc4ac4280c06e74c46bca80038b7600e39dabd759c229c"
}
],
"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": "baf458800da7dd5691b9b47d29a3273e64fa0da2babb824520e6f2ac40e893c4"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "a2ef527bd774614156dc4ac4280c06e74c46bca80038b7600e39dabd759c229c"
}
}
},
{
"name": "descriptor",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "d1fdb120441b0a682dabdaf66506cf1aedb24cf0637bf65d1b9dad9e6672f620"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "created",
"observed": {
"value": "absent"
},
"children": [
{
"name": "refused",
"observed": {
"value": {
"bool": false
}
}
},
{
"name": "max_total_threads_per_object_threadgroup",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"uint": 128
}
}
}
}
},
{
"name": "max_total_threads_per_mesh_threadgroup",
"observed": {
"value": {
"uint": 128
}
}
},
{
"name": "object_thread_execution_width",
"observed": {
"value": {
"variant": {
"name": "Some",
"payload": {
"uint": 32
}
}
}
}
},
{
"name": "mesh_thread_execution_width",
"observed": {
"value": {
"uint": 32
}
}
},
{
"name": "max_total_threadgroups_per_mesh_grid",
"observed": {
"value": {
"uint": 1048576
}
}
},
{
"name": "required_threads_per_object_threadgroup",
"observed": {
"value": {
"fields": {
"depth": {
"uint": 0
},
"height": {
"uint": 0
},
"width": {
"uint": 0
}
}
}
}
},
{
"name": "required_threads_per_mesh_threadgroup",
"observed": {
"value": {
"fields": {
"depth": {
"uint": 0
},
"height": {
"uint": 0
},
"width": {
"uint": 0
}
}
}
}
},
{
"name": "max_total_threads_per_threadgroup",
"observed": {
"value": {
"uint": 0
}
}
}
]
},
{
"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": 3,
"buffer_blocks_made_ahead": 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,
"shader_modules_made": 3,
"shader_modules_shared": 1
},
"composed": {
"blocks_ahead_waited_for": 3,
"buffer_blocks_made_ahead": 2,
"image_blocks_made_ahead": 1,
"plain_buffer_blocks_made": 2
},
"ceilings": {
"addressable_buffers_made": 2,
"pooled_memory_blocks_made": 3,
"shader_modules_made": 3
},
"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 30.12 and ours at 38.41; 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": 413,
"times": {
"case": "mesh-limits-plain",
"calls": 2,
"in_calls": 56830501,
"on_cpu": 1424500,
"blocked": 55807583,
"elsewhere": 3667,
"spend": 56890834,
"spend_least": 43886459,
"spend_most": 96082583,
"per_call": [
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 56603292,
"on_cpu": 1132292,
"blocked": 55807583,
"wall_least": 43656084,
"wall_most": 95626250,
"wall_total": 56603292,
"on_cpu_total": 1132292,
"blocked_total": 55807583
},
{
"call": "mesh_pipeline_limits",
"least_calls": 1,
"most_calls": 1,
"wall": 231333,
"on_cpu": 231750,
"blocked": 0,
"wall_least": 227209,
"wall_most": 517250,
"wall_total": 231333,
"on_cpu_total": 231750,
"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 30.12 and ours at 38.41; 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": 286,
"times": {
"case": "mesh-limits-plain",
"calls": 2,
"in_calls": 7485042,
"on_cpu": 7215250,
"blocked": 204458,
"elsewhere": 2167,
"spend": 7487209,
"spend_least": 5641209,
"spend_most": 52499959,
"per_call": [
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 1639458,
"on_cpu": 1623375,
"blocked": 0,
"wall_least": 817958,
"wall_most": 18754875,
"wall_total": 1639458,
"on_cpu_total": 1623375,
"blocked_total": 0
},
{
"call": "mesh_pipeline_limits",
"least_calls": 1,
"most_calls": 1,
"wall": 5845584,
"on_cpu": 5657209,
"blocked": 76417,
"wall_least": 4694209,
"wall_most": 33738667,
"wall_total": 5845584,
"on_cpu_total": 5657209,
"blocked_total": 76417
}
]
}
}
]
}