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 at39b45dd232(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)
549 lines
19 KiB
JSON
549 lines
19 KiB
JSON
{
|
|
"format": 1,
|
|
"case": "function-bindings-imageblock",
|
|
"suite_version": 1,
|
|
"shaders": [
|
|
{
|
|
"fixture": "a4_imageblock_extent.ll",
|
|
"entry": "a4_imageblock_extent",
|
|
"source_sha256": "3fcc4207683f034a6804df88e121bfbe1db99610b2301b1042f9e3b3a631c1a2"
|
|
},
|
|
{
|
|
"fixture": "a4_imageblock_extent.air.ll",
|
|
"entry": "a4_imageblock_extent",
|
|
"source_sha256": "155c77190cf60e4b001104fbe169e8dd1c74fd800cb7806ece9da9d086e30f1f"
|
|
}
|
|
],
|
|
"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": "3fcc4207683f034a6804df88e121bfbe1db99610b2301b1042f9e3b3a631c1a2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "air-typed",
|
|
"observed": {
|
|
"value": "absent",
|
|
"digest": {
|
|
"kind": "sha256",
|
|
"hex": "155c77190cf60e4b001104fbe169e8dd1c74fd800cb7806ece9da9d086e30f1f"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "entry",
|
|
"observed": {
|
|
"value": "absent",
|
|
"digest": {
|
|
"kind": "sha256",
|
|
"hex": "41778c232e644c1853fa23d3e69bd3a9ce00d3a449039d9a459f4d4c3aa8ddb5"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "library",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Ok",
|
|
"payload": "absent"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "bindings",
|
|
"observed": {
|
|
"value": "absent"
|
|
},
|
|
"children": [
|
|
{
|
|
"name": "count",
|
|
"observed": {
|
|
"value": {
|
|
"uint": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "MTLBindingTypeImageblock/0/img",
|
|
"observed": {
|
|
"value": "absent"
|
|
},
|
|
"children": [
|
|
{
|
|
"name": "name",
|
|
"observed": {
|
|
"value": {
|
|
"lines": [
|
|
"img"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "type",
|
|
"observed": {
|
|
"value": {
|
|
"fields": {
|
|
"name": {
|
|
"lines": [
|
|
"MTLBindingTypeImageblock"
|
|
]
|
|
},
|
|
"raw": {
|
|
"uint": 17
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "access",
|
|
"observed": {
|
|
"value": {
|
|
"fields": {
|
|
"name": {
|
|
"lines": [
|
|
"MTLBindingAccessReadOnly"
|
|
]
|
|
},
|
|
"raw": {
|
|
"uint": 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "index",
|
|
"observed": {
|
|
"value": {
|
|
"uint": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "used",
|
|
"observed": {
|
|
"value": {
|
|
"bool": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "argument",
|
|
"observed": {
|
|
"value": {
|
|
"bool": true
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_size",
|
|
"observed": {
|
|
"value": {
|
|
"uint": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_type",
|
|
"observed": {
|
|
"value": {
|
|
"fields": {
|
|
"name": {
|
|
"lines": [
|
|
"MTLDataTypeUInt4"
|
|
]
|
|
},
|
|
"raw": {
|
|
"uint": 36
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": [
|
|
"MTLDataTypeUInt4"
|
|
]
|
|
},
|
|
"raw": {
|
|
"uint": 36
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "access",
|
|
"observed": {
|
|
"value": {
|
|
"fields": {
|
|
"name": {
|
|
"lines": [
|
|
"MTLBindingAccessReadWrite"
|
|
]
|
|
},
|
|
"raw": {
|
|
"uint": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "alignment",
|
|
"observed": {
|
|
"value": {
|
|
"uint": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "data_size",
|
|
"observed": {
|
|
"value": {
|
|
"uint": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "element_is_argument_buffer",
|
|
"observed": {
|
|
"value": {
|
|
"bool": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "element",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Plain",
|
|
"payload": "absent"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"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,
|
|
"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,
|
|
"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-imageblock",
|
|
"calls": 2,
|
|
"in_calls": 21920000,
|
|
"on_cpu": 695208,
|
|
"blocked": 21216499,
|
|
"elsewhere": 3916,
|
|
"spend": 21924375,
|
|
"spend_least": 21160959,
|
|
"spend_most": 22790333,
|
|
"per_call": [
|
|
{
|
|
"call": "compute_pipeline_bindings",
|
|
"least_calls": 1,
|
|
"most_calls": 1,
|
|
"wall": 84792,
|
|
"on_cpu": 85042,
|
|
"blocked": 0,
|
|
"wall_least": 80458,
|
|
"wall_most": 339042,
|
|
"wall_total": 84792,
|
|
"on_cpu_total": 85042,
|
|
"blocked_total": 0
|
|
},
|
|
{
|
|
"call": "library",
|
|
"least_calls": 1,
|
|
"most_calls": 1,
|
|
"wall": 21839542,
|
|
"on_cpu": 585958,
|
|
"blocked": 21216499,
|
|
"wall_least": 21073125,
|
|
"wall_most": 22697583,
|
|
"wall_total": 21839542,
|
|
"on_cpu_total": 585958,
|
|
"blocked_total": 21216499
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"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-imageblock",
|
|
"calls": 2,
|
|
"in_calls": 1153917,
|
|
"on_cpu": 1157625,
|
|
"blocked": 0,
|
|
"elsewhere": 8791,
|
|
"spend": 1165834,
|
|
"spend_least": 1108958,
|
|
"spend_most": 1322459,
|
|
"per_call": [
|
|
{
|
|
"call": "compute_pipeline_bindings",
|
|
"least_calls": 1,
|
|
"most_calls": 1,
|
|
"wall": 1053084,
|
|
"on_cpu": 1053416,
|
|
"blocked": 0,
|
|
"wall_least": 1012917,
|
|
"wall_most": 1197625,
|
|
"wall_total": 1053084,
|
|
"on_cpu_total": 1053416,
|
|
"blocked_total": 0
|
|
},
|
|
{
|
|
"call": "library",
|
|
"least_calls": 1,
|
|
"most_calls": 1,
|
|
"wall": 102875,
|
|
"on_cpu": 105292,
|
|
"blocked": 0,
|
|
"wall_least": 86708,
|
|
"wall_most": 124834,
|
|
"wall_total": 102875,
|
|
"on_cpu_total": 105292,
|
|
"blocked_total": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|