Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/function-bindings-visible-function-table.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

552 lines
19 KiB
JSON

{
"format": 1,
"case": "function-bindings-visible-function-table",
"suite_version": 1,
"shaders": [
{
"fixture": "visible_table_caller.ll",
"entry": "visible_table_dispatch",
"source_sha256": "948168a8fe7df7d16ad89c9b5dd6bd6013b8aa10632f71ff318cd05d57f29590"
},
{
"fixture": "visible_table_caller.air.ll",
"entry": "visible_table_dispatch",
"source_sha256": "5c8d6370ee20afca5837d955c212b056568725d1164a7ee544e629764396509a"
}
],
"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": "948168a8fe7df7d16ad89c9b5dd6bd6013b8aa10632f71ff318cd05d57f29590"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "5c8d6370ee20afca5837d955c212b056568725d1164a7ee544e629764396509a"
}
}
},
{
"name": "entry",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "3d318cad02ae26f4178b706d9dde04ff00ede4571367628e301abb0f796839ba"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "bindings",
"observed": {
"value": "absent"
},
"children": [
{
"name": "count",
"observed": {
"value": {
"uint": 2
}
}
},
{
"name": "MTLBindingTypeBuffer/0/out",
"observed": {
"value": "absent"
},
"children": [
{
"name": "name",
"observed": {
"value": {
"lines": [
"out"
]
}
}
},
{
"name": "type",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLBindingTypeBuffer"
]
},
"raw": {
"uint": 0
}
}
}
}
},
{
"name": "access",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLBindingAccessReadWrite"
]
},
"raw": {
"uint": 1
}
}
}
}
},
{
"name": "index",
"observed": {
"value": {
"uint": 0
}
}
},
{
"name": "used",
"observed": {
"value": {
"bool": true
}
}
},
{
"name": "argument",
"observed": {
"value": {
"bool": true
}
}
},
{
"name": "buffer",
"observed": {
"value": "absent"
},
"children": [
{
"name": "alignment",
"observed": {
"value": {
"uint": 4
}
}
},
{
"name": "data_size",
"observed": {
"value": {
"uint": 4
}
}
},
{
"name": "data_type",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLDataTypeUInt"
]
},
"raw": {
"uint": 33
}
}
}
}
},
{
"name": "struct_type",
"observed": {
"value": {
"variant": {
"name": "None",
"payload": "absent"
}
}
}
},
{
"name": "pointer_type",
"observed": {
"value": "absent"
},
"children": [
{
"name": "element_type",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLDataTypeUInt"
]
},
"raw": {
"uint": 33
}
}
}
}
},
{
"name": "access",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLBindingAccessReadWrite"
]
},
"raw": {
"uint": 1
}
}
}
}
},
{
"name": "alignment",
"observed": {
"value": {
"uint": 4
}
}
},
{
"name": "data_size",
"observed": {
"value": {
"uint": 4
}
}
},
{
"name": "element_is_argument_buffer",
"observed": {
"value": {
"bool": false
}
}
},
{
"name": "element",
"observed": {
"value": {
"variant": {
"name": "Plain",
"payload": "absent"
}
}
}
}
]
}
]
}
]
},
{
"name": "MTLBindingTypeVisibleFunctionTable/1/ops",
"observed": {
"value": "absent"
},
"children": [
{
"name": "name",
"observed": {
"value": {
"lines": [
"ops"
]
}
}
},
{
"name": "type",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLBindingTypeVisibleFunctionTable"
]
},
"raw": {
"uint": 24
}
}
}
}
},
{
"name": "access",
"observed": {
"value": {
"fields": {
"name": {
"lines": [
"MTLBindingAccessReadOnly"
]
},
"raw": {
"uint": 0
}
}
}
}
},
{
"name": "index",
"observed": {
"value": {
"uint": 1
}
}
},
{
"name": "used",
"observed": {
"value": {
"bool": true
}
}
},
{
"name": "argument",
"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": 3,
"buffer_blocks_made_ahead": 2,
"functions_translated": 1,
"image_blocks_made_ahead": 1,
"pipeline_layouts_made": 1,
"pipeline_layouts_shared": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 3,
"shader_modules_made": 1,
"stage_entries_specialized": 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,
"pipeline_layouts_made": 1,
"pooled_memory_blocks_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 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": "function-bindings-visible-function-table",
"calls": 2,
"in_calls": 22256542,
"on_cpu": 700750,
"blocked": 21473916,
"elsewhere": 3417,
"spend": 22260542,
"spend_least": 21353458,
"spend_most": 23363792,
"per_call": [
{
"call": "compute_pipeline_bindings",
"least_calls": 1,
"most_calls": 1,
"wall": 91667,
"on_cpu": 91959,
"blocked": 0,
"wall_least": 78125,
"wall_most": 111583,
"wall_total": 91667,
"on_cpu_total": 91959,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 22164875,
"on_cpu": 614875,
"blocked": 21473916,
"wall_least": 21269875,
"wall_most": 23267667,
"wall_total": 22164875,
"on_cpu_total": 614875,
"blocked_total": 21473916
}
]
}
},
{
"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": "function-bindings-visible-function-table",
"calls": 2,
"in_calls": 275875,
"on_cpu": 279584,
"blocked": 0,
"elsewhere": 5584,
"spend": 281124,
"spend_least": 262042,
"spend_most": 330667,
"stopped": "a call did not answer, at bindings",
"per_call": [
{
"call": "compute_pipeline_bindings",
"least_calls": 1,
"most_calls": 1,
"wall": 157333,
"on_cpu": 157625,
"blocked": 0,
"wall_least": 146458,
"wall_most": 196625,
"wall_total": 157333,
"on_cpu_total": 157625,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 119083,
"on_cpu": 122500,
"blocked": 0,
"wall_least": 110000,
"wall_most": 128333,
"wall_total": 119083,
"on_cpu_total": 122500,
"blocked_total": 0
}
]
}
}
]
}